When the "option explicit" is set and a variable
is used before it is declared the the following exception
occurs :
"Microsofr VBScript runtime error: Variable is undefined".
At this time nothing strange on this behaviuor.
On a W2000 this script is started from a cmd windows:
cscript.exe MyScript.vbs
When I analyze the variable %errorlevel% this is set to 0.
Usually I will expect that the %errorlevel% variable will be set to something > than 0.
Someone could me why cscript has this behaviour?
is used before it is declared the the following exception
occurs :
"Microsofr VBScript runtime error: Variable is undefined".
At this time nothing strange on this behaviuor.
On a W2000 this script is started from a cmd windows:
cscript.exe MyScript.vbs
When I analyze the variable %errorlevel% this is set to 0.
Usually I will expect that the %errorlevel% variable will be set to something > than 0.
Someone could me why cscript has this behaviour?