Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Codeblock
Message
From
03/10/2003 15:19:03
 
 
To
09/02/2002 01:20:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00611101
Message ID:
00834964
Views:
28
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
Map
View

Click here to load this message in the networking platform