Variable type in UFT – User friendly Tech help

nHow to get Subtype of variable?
n
nIt is very easy, we need to use the function provided in vbscripting i.e. Vartype
n
Syntax:-
nVartype(variableName)
n
Vartype returns values in the form  shown below:-
n

Example:-
nWe need Vartype of a string variable,
n Var1 = “UFThelp”
n
nMsgbox (Vartype(Var1)) ‘8 will be returned
n

nn

DataType

Was this article helpful?
YesNo

Similar Posts