Search here for all the info you want in this Blog

Typename and vartype functions

TypeName(variable) - Returns the type name of the specified variable
VarType(vVariant) - Returns the type code of the specified variable

Example 1:


msgbox x
msgbox typename(x)
msgbox vartype(x)
x=10
msgbox typename(x)
msgbox vartype(x)
x =22.3
msgbox typename(x)
msgbox vartype(x)
x = "hello"
msgbox typename(x)
msgbox vartype(x)
x = true
msgbox typename(x)
msgbox vartype(x)

No comments:

Post a Comment