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 create a cookie using vbscript?

589


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

4743


Out of the different type of operators, which are evaluated first and last in the vbscript language?

563


Explain the arrays in vb script?

585


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3553






Illustrate briefly about the different types of statement

2024


How will you get the natural logarithm of the given number in vbscript?

603


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

811


after medical test,when will be the police verification

1714


How to create a function in vbscript?

586


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

2542


Mention how to access array data?

513


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

575


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

1668


Mention what is vbscript?

594