what is use of optionexplicit in variable declaration

Answer Posted / aa

If we don't use it, we can declare variables in vbscript
without declaring them in advance.
Ex:

option explicit
a=10

This throws an Error.

If don't use... Option explicit
a=10
doesnot throw an error.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which functionalities of QTP used in banking project? pls any say answer?

1659


what r the main attributes of test automation?

1727


How can you identify the browser and its information using the qtp script?

798


i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)

1791


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1817


How can I change object description or check point values in qtp?

773


What are the different attribute used with regular expression?

744


Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

1570


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1989


How does you test a weblink which is changing dynamically?

791


wht type of User defined functions or Java Releated functions do we write in VB scripting

2041


If I change the property value at runtime is it effect is object repository?

856


how can we do the frame work in qtp

1820


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1747


Is it possible to merge two object repository files in qtp?

843