Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Codeblock
Message
De
03/10/2003 15:19:03
 
 
À
09/02/2002 01:20:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00611101
Message ID:
00834964
Vues:
26
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
Fil
Voir

Click here to load this message in the networking platform