Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile error with EXECSCRIPT()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00894607
Message ID:
00895492
Views:
16
I don't wanna be pushy but does anybody have an explanation for this?

Thanks,
Einar

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform