I receive the following error:
Missing operand (Error 1231)
when trying to compile the following code:
local array laMyarray (1)
EXECSCRIPT(mMyMemoField, @laMyarray)
The error occurs when I compile the prg (so it is not a runtime error caused by 'bad' code in mMyMemoField).
It compiles if I remove the @ but I really want to pass the array by reference and not by value.
My current workaround is to declare the array private and not pass it, but I'd like not to use a private array.
The error seems kida 'goofy' because exec() is not missing an operand.
If anyone could explain this behaviour to me before it drives me nuts that would be great <s>
I have not tried it but I would assume to copying mMyMemoFiled to temp.prg and compiling temp.prg at runtime and using:
do temp.fxp with laMyArray
(also by reference) would work but I really like exec() (a lot less code)
Ohh well any insight would be greatly appreciated.
Thanks,
Einar
Semper ubi sub ubi.