Scripts as Variables

B

Ben Zigdon

Guest
I want to be able to have a script as a variable.

I want to be able to save a variable
ScriptToRun = scr_example1();
in my create event,

Ideally I could then and do this:
scr_execute(ScriptToRun);
and have scr_example1(); run.

the problem is, when I save it like this it saves ScriptRun as the return value of scr_example1(), not as the script itself. Is there any way to set a variable equal to a script the way I want??? Thanks in advance for your help
 
B

Ben Zigdon

Guest
I can't believe I didn't try that. Thank you it works now :)
 
Top