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:
00432886
Vues:
24
>>>>>>>>>>>>>>>>>>>
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.
>>>>>>>>>>>>>>>>>>>

D'ohhhh! You're right. Here I was all this time assuming that it had to do with some subtle difference in the way that VFP treated properties of an object vs. standard variables.

(But that being said, Ed, don't you think your last sentence is a little harsh? I've read more than a little about macro-expansion, and I am fully aware of how the "." terminator works. I missed the obvious answer, assuming something more complicated -- this is not an uncommon reaction to technical issues, even from decent programmers or IS folks. It seems a bit of a leap to assume and state that I have not "read a little about macro-expansion.")
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform