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.
Liked By
Write Answer
How you define Option Explicit in VBScript?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
04-Nov-2011Using 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.