This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
TypeName Function Example
This example uses the
TypeName function to return information about a variable.
' Declare variables.
Dim NullVar, MyType, StrVar As String, IntVar As Integer, CurVar As Currency
Dim ArrayVar (1 To 5) As Integer
NullVar = Null ' Assign Null value.
MyType = TypeName(
StrVar)
' Returns "String".
MyType = TypeName(
IntVar)
' Returns "Integer".
MyType = TypeName(
CurVar)
' Returns "Currency".
MyType = TypeName(
NullVar)
' Returns "Null".
MyType = TypeName(
ArrayVar)
' Returns "Integer()".