Option Explicit keyword is used to specify that all variables must be declared before use in QTP.
Example -
Below code will illustrate the use of Option Explicit.
Option Explicit
print a ' After executing this code, You will get error stating a is undefined.
Thus When you use Option Explicit as a first statement in your code, all variables must be declared before use in QTP.
Example -
Below code will illustrate the use of Option Explicit.
Option Explicit
print a ' After executing this code, You will get error stating a is undefined.
Thus When you use Option Explicit as a first statement in your code, all variables must be declared before use in QTP.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs