Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why cannot use & with Thisform.SomeProperty
Message
From
05/05/2009 08:30:37
 
 
To
04/05/2009 21:20:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01397844
Message ID:
01397943
Views:
124
Hi Greg.

>>Just to answer the general question, you can only macro-expand variables, not fields or properties.
>
>I have used macro substitution with table.fields -->
>
>lcAlias = ALIAS()
>
>REPLACE &lcAlias..fieldname WITH lcValue

But you're not macro-expanding the content of a field; it's still a variable (lcAlias). Tamar means you can't do something like:

&CompanyName (where CompanyName is the name of a field)
&This.SomeProperty

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform