Navigation:  ThinBASIC Language > thinBasic Functions > Variables functions >

TypeOf

Previous pageReturn to chapter overviewNext page

 

Description

 

Return a string indicating type and subtype of a variable.

 

Syntax

 

s = TypeOf(Variable)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

Variable

a Variable

No


 

Remarks

 

Will return a string like MainType.SubType of a variable

 

Restrictions

 

See also

 

Examples

 

Dim MyLong as Long

 

MsgBox TypeOf(MyLong)

'---Will return a string like "Numeric.Long"