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
How you can make an action as re-usable action?
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
Where you get the run time data table?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
Can we Test Welcome Screens and Process Images with QTP
How to call a test from another test?
How can you handle exceptions in qtp?
breef description of batch testing ?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
When Recovery scenario actually starts while testing the application?
Suppose I want fail that check point? How can you do that?
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
Without using gui map editor we can recognize the application in winrunner ?
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.
Is qtp supports uni-code?