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

We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

1985


Explain about scrrun.dll?

740


Can u describe what kind of testing are for OTC derivates by banks.

1911


In html file what is an ideal position to include vbscript?

1097


Which operator can be used to check if two numbers are equal or not in vbscript?

908


How many types of procedures are available in the vbscript language?

752


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1707


For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

1990


Illustrate briefly about the different types of statement

2261


What are lbound and ubound in the vbscript language?

840


How to replace junk code recorded by QTP with a mall function.

1879


What if you do not specify anything when you call a procedure?

828


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1300


How to open browser in vb script?

848


There are 5 web pages.write a script to click the button on 4th web page.

3214