how do you make the variable declaration mandatory?what is the use of "option explicit"?
Answer Posted / sonali
Option explicit will make compulsory to define each variable in the script .
if at the top of the script we have written "Option Explicit" and in Dim only two variables assigned but in script somewhere used 3rd and 4th variable also .
then it will display an error message stating that "Variable is Undefined " .
It will be very very usefull in lenghy scripts where we will use different Functions and then call functions .
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to write functions and sub in vb script?
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
Mention what is byref and byval parameters in vbscript?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
What is loose binding? Why is it not a good practice to use it?
How many types of operators are available in the vbscript language?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
Is vbscript language a case-sensitive language and what does it mean?
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
How to Import data from a file (file is on the desktop) to the data table
Write a Script for ATM in QTP
How to create a function in vbscript?
What are the different types of loops available in the vbscript language?
what is the differance between BYVAL,BYREF?
Explain a few date functions in vbscript