Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
&This.MyProperty doesn't work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00432793
Message ID:
00432808
Vues:
19
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform