AIMan,
While it initially seems like a bad idea, its best NOT to use any gotos in any code that you write. It creates the proverbial "spaghetti" code. It is always possible to create loops and conditions to avoid using gotos and the code is normally much better of for that. I'd focus on how to rewrite the code without using gotos ... there is a reason that most of the modern languages do not support that. If you need help with that just post the code here and I'm sure many of the viewers would be able to help modernize that code.
The VBScript module is called anew each time it is executed. The variables will not retain state unless you save them. So use
var = GetVariable("var")
...
SetVariable "var", var
for int, float and
var = GetStrVariable("var")
...
SetStrVariable "var", var
for strings in order to save the variables and resume them. Keep in mind that the VBScript module is within the pipeline loop. So if you stall that module the entire pipeline is stalled. To remedy this, use a state variable to let you know what you were last doing.
STeven.
|
|