Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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

2348


did any one attended interview in applabs if you had gone through plz tell me the procedure

2311


Explain about filter expression?

1056


Explain the adodb.stream class?

1057


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1427


How to assign a numeric value to a variable?

1172


How to open excel in vb script?

1071


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.

2353


How will you convert a string to lower case string using vbscript?

1075


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

1049


What is the difference between javascript and vbscript?

1228


Why is it recommended to close the database connection every time after the work is completed?

988


What is the difference between vbscript and vba?

1180


Explain the functionality of vbscript?

1005


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.?

2548