What is the use of "Option Explicit"?
Answers were Sorted based on User's Feedback
Answer / sonal.pagare
You can force VBScript to require all variables to be
explicitly declared by including the statement Option
Explicit at the start of every script. Any variable that is
not explicitly declared will then generate an error.
| Is This Answer Correct ? | 5 Yes | 0 No |
"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 |
Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME
How to Import data from a file (file is on the desktop) to the data table
How will you trim the spaces on the left of a string using vbscript?
What are the different types of loops available in the vbscript language?
How to create a function in vbscript?
what is fire event method in qtp?
how to retrieve native property value in runtime?
What is the technology used by vb script?
write a vb script to find simple interest using functions
How will you get a string with the specified character the specified number of times in vbscript?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
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..