07-17-2008, 11:36 PM
What i need is to run a function by variable and get its TRUE/FALSE return value.
The only way i could find that would run a function dynamically was mac(function), but it appears to return true if it was found/executed, rather than returning the return values of the function itself.
I can do it with the new thread setting a global variable like this:
Caller
Function1
Is there a better way i can do this?
The only way i could find that would run a function dynamically was mac(function), but it appears to return true if it was found/executed, rather than returning the return values of the function itself.
I can do it with the new thread setting a global variable like this:
Caller
function str'name
name = "function1" ;; temp
int+ async_result;
async_result=0;
int hThread=mac(name)
wait 0 H hThread
if(async_result) out "True"
else out "False"
Function1
Is there a better way i can do this?