greenrider
Member
What is the ASH methodology for having a script call another script that takes an argument?
Right now, I'm getting around the problem by doing this:
But when I try:
or
I get the following error: "Variable reference expected for function name."
I'm also curious how you'd handle the main() of the called script returning a value that the original script must parse. That's something that you can't do with cli_execute, it seems.
Right now, I'm getting around the problem by doing this:
Code:
cli_execute("call foo 3");
But when I try:
Code:
call "scripts\foo 3";
Code:
call "foo 3";
I get the following error: "Variable reference expected for function name."
I'm also curious how you'd handle the main() of the called script returning a value that the original script must parse. That's something that you can't do with cli_execute, it seems.