Variable type in UFT


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:-


Vartype return in vbscripting

Example:-
We need Vartype of a string variable,
 Var1 = “UFThelp”

Msgbox (Vartype(Var1)) ‘8 will be returned

example of vartype in uft

DataType

ufthelp

Leave a Reply

Your email address will not be published. Required fields are marked *