Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
&This.MyProperty doesn't work
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00432793
Message ID:
00432808
Views:
18
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>Why This code doesn't work? FoxPro gaves an error.
>
>In the Form I have a property:
>.MyProperty="customers" &&Table Name
>
>In a control InterActiveChange Event:
>Private lcValue
>lcValue=&ThisForm.MyProperty..firstname
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>Hi Francisko. I wish I could tell you "why," in the form of a low-level explanation, but at least I can reassure you that you are not crazy! You cannot macro-expand properties. Instead, save to a variable and macro-expand.

It's simple; macro expansion treats a . as a terminator, so you can't use field or property references in a mcro-expression. If you read a little aboutr macro-expansion in the docs, it's obvious.
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
Next
Reply
Map
View

Click here to load this message in the networking platform