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:
00432886
Views:
23
>>>>>>>>>>>>>>>>>>>
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform