what is option explicit? what is the use of it?
Answer Posted / ritesh mahendrakar
You can declare variables with the Dim, Public or the
Private statement. Like this:
Dim myname
myname = "ritesh"
However, this method is not a good practice, because you
can misspell the variable name later in your script, and
that can cause strange results when your script is running.
If you misspell for example the "myname" variable
to "mynime", the script will automatically create a new
variable called "mynime". To prevent your script from doing
this, you can use the 'Option Explicit' statement. This
statement forces you to declare all your variables with the
dim, public or private statement.
Put the Option Explicit statement on the top of your
script. Like this:
Option Explicit
Dim myname
myname = "ritesh"
| Is This Answer Correct ? | 62 Yes | 1 No |
Post New Answer View All Answers
Which scripting language used by quicktest professional?
What are the different recording modes and how do they work?
Describe synchronization point.
How to find array size in qtp?
Thanks....But can u tell me how i use the QTP for GIS with one Example...
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.
What is a checkpoint? How many check points are there in qtp?
give me an example where u used good judgement and logic in solving a problem
what is the difference btn risks & Therads in the Test plan documentation?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
How to check feasibility of the appliction?in automation testing?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
Should have experience in framework means?
With what extension you can save the list of tests in a file to run in test batch runner?