what is option explicit? what is the use of it?
Answer Posted / rajendra
In VB script
option explicit forces the user to declare every variable
used in the code.
In VB Script is not mandatory to declare the variables.
VB script will be processed by windows scripthost.
Some time script host maynot haddle the undiclared
variables.
so it is a good practice option explicit on the top of the
script code.
once if u declare "option explicit" the each any every
variable must be dicalred before using it in code.
other wise it fires an error nad not allow to run the
script on Windows script host.
It is good coding practice to use "option explicit" on the
top of the code.
byeee
Rajendra Prasad Reddy
rajendra_penumalli@yahoo.com
+919885162742
hyderabad
india
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
I am a newbie to QTP / Automation testing. I want to develop a script that creates a data file automatically with proper headings using VBScript in QTP.
Explain the benefits of quick test pro(qtp)?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
what is the difference between data driver & data driven and driver script?
When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.
Which features or drawbacks of QTP lead to the upgrade for a newer version?
Describe how Smart Identification is used
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
How you debug your script?
Explain in brief about the qtp automation object model (aom).
Get the count of files of similar types from a folder.
How to add synchronisation points in qtp?
How will you report the bug and explain the defect tracking sheet you handled?
Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...