glarsen_1
13 years agoOccasional Contributor
Declaring a sys.process() as a variable
Hey,
i am testing a program and to make it easier I want to declare for example:
Set GMS = Sys.Process("GMS")
and I want to be able to use it from another script, using the 'USEUNIT
The problem I'm running into is when I try to run the script and an instance of GMS has not yet been started on the computer it gets stuck "waiting for GMS"/I get a VBScript error...
Is there any way to declare in such a way that even though it doesn't exist now, I know it will later so just ignore it for now? I want it to be accessible from many different scripts so I don't have to declare it I all of them.
Also to test the way I want I. Need to use sys.process. I cant use aliases...
Thanks for your help!
i am testing a program and to make it easier I want to declare for example:
Set GMS = Sys.Process("GMS")
and I want to be able to use it from another script, using the 'USEUNIT
The problem I'm running into is when I try to run the script and an instance of GMS has not yet been started on the computer it gets stuck "waiting for GMS"/I get a VBScript error...
Is there any way to declare in such a way that even though it doesn't exist now, I know it will later so just ignore it for now? I want it to be accessible from many different scripts so I don't have to declare it I all of them.
Also to test the way I want I. Need to use sys.process. I cant use aliases...
Thanks for your help!