In QTP, all variables of variant type. Meaning It is not necessary to declare a variable with any data type like int, float etc.
When we initialize a variable with any value, QTP will assign a data type to that variable depending upon what kind of Value is assigned to the variable.
Example -
Dim a
a = 10
' In above code, when we assign the value of 10 to a, data type of a becomes integer.
This means that at runtime, the data type binding is happening. This is called as a late binding in QTP.
When we initialize a variable with any value, QTP will assign a data type to that variable depending upon what kind of Value is assigned to the variable.
Example -
Dim a
a = 10
' In above code, when we assign the value of 10 to a, data type of a becomes integer.
This means that at runtime, the data type binding is happening. This is called as a late binding in QTP.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs