what is use of optionexplicit in variable declaration

Answer Posted / aa

If we don't use it, we can declare variables in vbscript
without declaring them in advance.
Ex:

option explicit
a=10

This throws an Error.

If don't use... Option explicit
a=10
doesnot throw an error.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are parameterizing tests?

767


Explain about datafile/verification of date file when file is not available in local system?

2475


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

786


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1720


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

837


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

2058


What is quicktest professional window?

760


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1728


How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.

2038


How to run a test using quicktest professional (qtp)?

774


If I change the property value at runtime is it effect is object repository?

835


What is action?

781


can test automation improve test effectiveness?

1722


Problem with XML checkpoint in QTP ?

3696


Discuss quicktest professional environment?

790