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

What are the naming conventions while declaring a variable in the vbscript language?

618


Which function allows you to instantiate an object given its programmatic identifier or progid?

560


why variable name should not exceed 255 characters?

1815


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

1915


Anyone have qtp11.0 crack?

2380






What purpose does ‘on error resume next’ serves?

545


How you can call vbscript functions?

577


How will you get the octal value of the given number in vbscript?

497


What is the difference between a dictionary and an array?

577


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 ?

1556


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3188


Compare java script and vb script?

591


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

520


What is select case statement?

600


Explain the support of asp for vb script functionality?

635