Home > DeveloperSection > Interviews > How you define Option Explicit in VBScript?

Posted on    November-04-2011 7:23 AM

 VB Script VB Script 
 1 Answer(s)
  2550  View(s)
Rate this:

Chintoo Semi

Total Post:79

Posted on    November-04-2011 12:00 AM

If you want to use Option Explicit in VBScript you should have to declare all variables using the Dim, Private, Public, or ReDim statements.
Using Option Explicit to avoid incorrect typing the name of an existing variable or to avoid confusion in code where the scope of the variable is undefined.

Don't want to miss updates? Please click the below button!

Follow MindStick