Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why?
Message
De
12/01/1999 00:57:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Why?
Divers
Thread ID:
00174204
Message ID:
00174944
Vues:
35
>>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.

With trailing blanks on lcFieldName, or leading blanks on lcTableName only. The "-" concatenation fixes the problem where lcTableName = "MyAlias ".
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform