What is the use of Option Explicit in VBScript?

Questions by Remasri   answers by Remasri

Showing Answers 1 - 6 of 6 Answers

Sumeet Singh Pramar

  • Mar 27th, 2007
 

To inilialize all the variable before using them.

  Was this answer useful?  Yes

Sujatars

  • Jun 12th, 2007
 

When you use the Option Explicit statement, you must explicitly declare all variables using the Dim, Private, Public, or ReDim statements. If you attempt to use an undeclared variable name, an error occurs.

Use Option Explicit to avoid incorrectly typing the name of an existing variable or to avoid confusion in code where the scope of the variable is not clear.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions