Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing fields as strings
Message
 
To
05/11/1997 21:06:57
Matthew Manicolo
Circa Telecommunications
Melbourne, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00058525
Message ID:
00058581
Views:
31
>I am setting up a table where one of the fields in the table actually desribes the name of the field that I must use in a seperate table. The problem is that VFP will not allow me to do with because it thinks that I am referencing a string rather than a field name. Is there a way around this.
>
>thanking you in advance
Matthew,

Macro expansion, if that is what you are using, only works for character memory variables. It does not work on fields. Therefor you need to;

lcMyFieldName = TableAlias.FieldName
REPLACE &lcMyFieldName WITH "Whatever"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform