Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compile error with EXECSCRIPT()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00894607
Message ID:
00895492
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform