10-08-2016, 10:12 PM
hello,
I have a function name in a variable, and I would like to call it, some one know how to do ?
example :
Now, If I call test("myfct"), Iwant the function myfct to be called (with parameter 123)
But it does not works as I wanted :
it returns "myfct(123)" but does not execute it...
if someone can help me..
Thank you.
I have a function name in a variable, and I would like to call it, some one know how to do ?
example :
Code:
EXPORT myfct(x)
BEGIN
PRINT(x);
END;
EXPORT test(fct)
BEGIN
local call:=fct+"(123)";
EVAL(call);
END;
But it does not works as I wanted :
it returns "myfct(123)" but does not execute it...
if someone can help me..
Thank you.