VarType() |
Top Previous Next |
VarType() - Returns Variable Subtype Description The VarType() function returns a value indicating the subtype of the supplied variable. VarType(Variable) Return type according to [id=55]this table[/id] Note: The VarType function never returns the value for Array by itself, instead it is added to some other value to indicate an array of a particular type. Example myString = "Hello" myInteger = 1 myDate = CDate("1/4/2000")
SMEvent.Raise "Trace", VarType(myString) ' returns 8 SMEvent.Raise "Trace", VarType(myInteger) ' returns 2 SMEvent.Raise "Trace", VarType(myDate) ' returns 7 |