Programmer1974
Programmer
Hello all!
If I have the following script:
Is there a way to limit the scope of intTest so that the second set of code does not find the declaration in the first set, and therefore displays an error? I ask because if I include multiple scripts in a .wsf script using...
...I do not want to worry about my variables conflicting with each other. I've tried declaring variables as private, but that has no effect. Thanks for your input!
If I have the following script:
Code:
<job id="Main">
<script language="VBScript">
OPTION EXPLICIT
Dim intTest
intTest = 1
MsgBox intTest
</script>
<script language="VBScript">
OPTION EXPLICIT
MsgBox intTest
</script>
</Job>
Is there a way to limit the scope of intTest so that the second set of code does not find the declaration in the first set, and therefore displays an error? I ask because if I include multiple scripts in a .wsf script using...
Code:
<script language="VBScript" src="C:\Test.vbs" />
<script language="VBScript" src="C:\Test2.vbs" />
<script language="VBScript" src="C:\Test3.vbs" />