Information générale
Catégorie:
Codage, syntaxe et commandes
I know this answer is greatly delayed, but it may help others
as well. Macrosubstitution in CodeBlock in not allowed in code that is
part of a "structure". For example an "IF" / "ENDIF" or "DO CASE".
By doing the macrosubstitution as a "single line" piece of code,
as in "mlen=max(mlen,meml(eval(&memofld)))" and then handing that
expanded code into the "structure" thru a MVAR, that will work.
Hope this helps,
Terry :)
>Randy suggested use of "mlen=max(mlen,meml(eval(&memofld)))" instead of the IF clause and it worked. But I am still curious of why the CodeBlock results in error with my original codes.
>
>Thanks for your attention.
>
>CY
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement