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
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com
did any one attended interview in applabs if you had gone through plz tell me the procedure
Explain about filter expression?
Explain the adodb.stream class?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
How to assign a numeric value to a variable?
How to open excel in vb script?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
How will you convert a string to lower case string using vbscript?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?
What is the difference between javascript and vbscript?
Why is it recommended to close the database connection every time after the work is completed?
What is the difference between vbscript and vba?
Explain the functionality of vbscript?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?