How to get Subtype of variable?
It is very easy, we need to use the function provided in vbscripting i.e. Vartype
Syntax:-
Vartype(variableName)
Vartype returns values in the form shown below:-
Example:-
We need Vartype of a string variable,
Var1 = “UFThelp”
Msgbox (Vartype(Var1)) ‘8 will be returned