Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why?
Message
 
 
À
11/01/1999 17:44:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Why?
Divers
Thread ID:
00174204
Message ID:
00174895
Vues:
34
>Actually, you could simply say EVAL(ALLTRIM(lcTableName - '.' - lcFieldName))
>
>This is a single eval, and the ALLTRIM and "-" concatenations are only needed to deal with leading and trailing blanks. Without the issue of blanks (which macro evaluation can't handle in any case, since you can't macro expand the result of a function), EVAL(lcTableName + '.' + lcFieldName) works just great.

That's much cleaner. It seems that EVAL(lcTableName + '.' + lcFieldName) works even with leading and/or trailing blanks in lcTableName and lcFieldName, though.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform