Hoping someone could help me figure out what I am doing wrong.
What I don't get is when this runs the first pop up box (echo) has nothing in it after the second loop goes through it will show "testing".
Could someone tell me why the first loop "f" has no data but the second loop it has the "testing" data in it?
Thanks
For i = 1 To 6
If Not i = 5 Then
call test
End If
wscript.echo f
'----Loop
Next
'----Function
Function test
f = "testing"
End Function
What I don't get is when this runs the first pop up box (echo) has nothing in it after the second loop goes through it will show "testing".
Could someone tell me why the first loop "f" has no data but the second loop it has the "testing" data in it?
Thanks
For i = 1 To 6
If Not i = 5 Then
call test
End If
wscript.echo f
'----Loop
Next
'----Function
Function test
f = "testing"
End Function