what is option explicit?

Answer Posted / madivalappa patil

option explicit force you to declare a variable to avoid
any mistakes in the script

normally when u try to use a variable which is not declared
in script then it will through an error saying that
variable not declared.

If you used Option Explicit on Top of your script then you
must declare all the veriables.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a standard checkpoint ?

559


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1513


I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...

1466


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

1505


What is the difference between qtp and selenium?

549






how to test use the quality control .how to verify the image verification

2546


When using descriptive programming?

636


What is use of object spy?

613


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2172


Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

1372


Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma

3250


What is Associate Repository in QTP 9.2 ?

603


How many types of status are there?

589


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1523


how to convert 100 into hundred repees only and viceversa

1453