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
Have you done batch testing in qtp? If yes how you are doing?
Can the user toggle between using Local OR and shared OR for the same action?
what and how to answer for the question "tell me about yourself ?" for 3 years experience. can anyone say inj detail please... its urgent
What are the challenges you faced during you entire life automation ?
How to build scripts that access data from external sources?
What are benefits of qtp?
If object is not recognized by qtp but the object is standard object what is your approach?
What is an expert view and keyword view?
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
what is clean sweep?
How can I import environment from a file on disk?
What is expert view in qtp?
Give me some real time point of way where exactly we can conduct audits?