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

Is QTP supports Unix. If yes, then how the test automation is done?

1888


I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

1691


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3944


what function you write to do database testing with the help of qtp?

1528


We stored into the objects OR and then write the scripting

1690






How will you declare a variable in qtp?

710


What ate the Technologies supported by QTP?

843


What is Test Fusion Report in QTP?

808


what is supply chain management?

2283


What is quick test pro?

758


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1428


What does it mean when a check point is in red color? What do you do?

724


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

754


How qtp recognizes the object?

828


1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

1605