Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alias name
Message
From
27/07/1999 09:57:16
 
 
To
27/07/1999 09:46:47
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00246542
Message ID:
00246561
Views:
15
I think you'll need to use the macro symbol for that. Its an ampersand (&)
Place it before a variable and use a dot or a space to terminate it.
ie, this.&lccontrol..value
Most likely you'll end up with
replace &curfield with eval("b." + field)

This stuff is pretty well documented in help, but there is also a thread running around here wherein someone posted an EXECELLANT description of how naming and macro conventions work. He was going to write it up as a KB or a FAQ article, don't know if that was done yet. Maybe someone saved it and can email it to you, or tell you the thread number.

>The Evaluate function worked fine for comparing the two values. It will also allow me to replace with the Evaluate() of that string as well. But I still need to know how to reference the field that I am trying to replace.
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Reply
Map
View

Click here to load this message in the networking platform