When and why do you use "OPTION EXPLICIT" in VB Script.
Is there any online help or something to learn the script
for Beginners?

Answer Posted / shilpi

Use Option Explicit to avoid incorrectly typing the name of
an existing variable or to avoid confusion in code where the
scope of the variable is not clear.

when you use Option Explicit statement,you must explicitly
declare all variables using the Dim,Private,Public or ReDim
statements.If you attempt to use an undeclared variable
name,an error occurs.

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can we preform retesting(DATA driven test) using function please gine the code for loginpage

2262


When should I use smart identification?

593


What is the short cut keys for the following?

635


How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is

6296


Explain different type of event trigger option.

533






How you are developing the script? Using record and play back or manual?

624


What is TOM in QTP?

1799


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1433


How can you pass value one action to another action?

546


We stored into the objects OR and then write the scripting

1536


What is the difference between Keyword Driven test and Data Driven test?

1768


can any body give the banking domain concepts/links

3626


Explain different checkpoints in qtp.

715


Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com

1435


What are the advantages of parameterization ?

587