General information
Category:
Coding, syntax & commands
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only