>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>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.