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 / vaibhav patil

You can also force the explicit declaration of variables by setting the keyword OPTION EXPLICIT . The <%OPTION EXPLICIT%> statement must appear before VBScript command,otherwise it will be treated as an invalid statement and generate error.

For eg,
<%Language=VBScript%>
<%OPTION EXPLICIT%>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1447


What do you to script when objects are removed from application?

689


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2246


What is fragmentation and paging?

1672


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1861






any body can you help me what is the script to automate an comand promt

2081


What are the methods used in UFT to handle exceptions or run-time errors?

745


How to use Environment parameterization? Explain with an example.

1570


How can i initiate the objects to find uniquely in OR

1552


Whats the realtime QTP testing process

2072


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2229


Does quicktest professional is unicode compatible?

602


In qtp, explain what is keyword driven automation framework?

700


Limitations in QTP?

1824


What is checkpoints for qtp?

629