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
Explain about arrays in vb script?
Is VB Script Case sensitive or Case insensitive?
Which command is used for writing text on a page?
Explain what is loose binding? Why is it not a good practice to use it?
Differentiate javascript and vbscript?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
What is Procedure or Subroutine in VB Script?
How will you get the exponent of the given number in vbscript?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
How to get the length of the string by making use of the string function?
How you can call vbscript functions?
How to open a file. What is the perpose of true and false mode there?
How will you get a subset of a array in vbscript?
Description.Create
How will you check that a variable is an array in vbscript?