Variables must always be described with the smallest scope possible. VBScript variables can have the given scope.
Scope
|
Where Variable is
Declared
|
Visibility
|
Procedure-level
|
Event, Function, or Sub procedure
|
Visible in the procedure in which it is declared
|
Script-level
|
HEAD section of an HTML page, outside any procedure
|
Visible in every procedure in the script
|