While writing script using For Next Statement in QTP, I try
defining the variable in Lib File I am getting syntax error
whereas if I use the variable in script file, the script
works fine. Can anyone help me in finding the reason behind
this?.
E:g
Dim intStartRow (Define in Lib File----- say abc.vbs)
Dim intRow (If I define this variable in Lib file I am
getting Syntax error where as if I define in the script
file ---- say xyz.mts the script works fine)
IntStartRow=2
For intRow = intStartRow to xlWrksht.UsedRange.Rows.Count
‘Some Code here
Next
Answer / jay prakash
should be some simple error in ur declaration. Nothing big
in this.
Do as below:
In Lib file, MyLib.vbs:
Dim i
i=10
In Script File
msgbox i
Include the lib file and run the script. No error.
If you can share the script i may be able to help u in
identification of your error.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is clean sweep?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
What scripting language is QTP of?
how do u plan test automation?
What is the use of sendkeys and what are send keys
QTP9.1 does not support to text checkpoint in Windows application? Is this correct? If this is correct, what is alternative for Text checkpoint?
Is the qtp course will help to create a virtual object?
with out using import sheet came is it possible to get the excel sheet ?
How to check which add-ins are associated with a test in qtp?
Whats the realtime QTP testing process
how to get the object count ?????????
How iteration is related to Test Results in QTP?