BexleyManor
03-12-2005, 09:03 AM
Hi all,
To get straight to the point, Is it possible for me to create a static variable with vbs??
When I do this with VBA,
Static tnow
tnow = Time + TimeSerial(0, 1, 0)
Do Until Time > tnow
MsgBox Time
Loop
Fine, it works, but in vbs I get an error. I therefore suspect the use of Static is not allowed in vbs. If this is the case, how can I get round this??
Many thanks in advance.
To get straight to the point, Is it possible for me to create a static variable with vbs??
When I do this with VBA,
Static tnow
tnow = Time + TimeSerial(0, 1, 0)
Do Until Time > tnow
MsgBox Time
Loop
Fine, it works, but in vbs I get an error. I therefore suspect the use of Static is not allowed in vbs. If this is the case, how can I get round this??
Many thanks in advance.