Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing field without alias
Message
From
30/10/1998 18:32:10
 
 
To
30/10/1998 14:39:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00152877
Message ID:
00153083
Views:
31
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform