Answer Posted / bharathchandra m
"Option Explicit" statement is used to declare variables and
arrays on the top of the script.When this stmt in script ,QTP
can allows all variables used in that script without
returning any error.
For example: x= 10
y= 20
z= c*y
msgbox(z)
In the above code, by mistakenly typed as 'c' in the place
of 'x'. Bur QTP tool allows 'c' as a new variable without
returning error.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what do you mean .ota mobile format
How can the spaces from the string be removed?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
What is the difference between do until loop and do while loop?
how to acces the remote mechine using vb cript(QTP)
How strcomp function works?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
Explain about the asc function?
Why is the use of exit do or exit for statements within loops discouraged?
Mention when to use function procedures and what are its characteristics?
How will you get the largest subscript of an array in vbscript?
What is the purpose of the err object in the vbscript language?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
What is the use of option explicit in vbscript?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me