Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing field without alias
Message
De
30/10/1998 18:32:10
 
 
À
30/10/1998 14:39:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00152877
Message ID:
00153083
Vues:
29
>Nancy,
>
>This gets back to my original point (which by the way is becoming more and more insignificant to me :-)
>
>IF lcMyVar = fcModby
>won't work because VFP thinks fcModby is a variable if I don't use an alias.
>
>Don't knock yourself out on this one. I was just trying to find another way to be lazy and save a few keystrokes.

How about:

IF lcMyVar = EVAL(lcAlias-'.fcModBy')

>
>>Simplify
>>>lcAlias = ALIAS()
>>>IF lcMyVar = &lcAlias..'fcModBy'

>>to
>>
IF lcMyVar = fcModby
>>
>>BTW, you're probably already aware of making sure that strings are padded to the lenght of a field, or they're both trimmed. Depending on SET EXACT/ANSI, etc.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform