Why do we use Option Explicit?

Answer Posted / harry

hi,
when you declare varible you use option Explicit as a
first line of your script .
ex
DIM name

if you do any spelling mistake like nime instead of name
then vb will take this as an new verible and endup giving
unpredictable result while runing.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to operate webobjects in a webpage using getobject function and then using generic methods?

2810


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

1785


Mention what is the difference between vbscript and vba?

735


How will you release the memory acquired by an array variable in vbscript?

990


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.

2057


What is the purpose of on error resume next statement?

762


how does vb script help in web page designing? explain with example.

1764


Write a code to print numbers from 5 to 0?

927


How to throw an error in vbscript?

844


Mention what is vbscript?

821


What is the difference between VBScript and JavaScript?

2339


Differentiate javascript and vbscript?

763


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3148


Explain about constants in vb script?

781


Which date function is used in the vbscript language to find the difference between the 2 dates?

808