Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00305094
Message ID:
00305521
Views:
18
>>Hi Erik,
>>
>>>cFieldName = "CodeList.Code" + xCode
>>>uValue = EVAL(cFieldName)
>>
>>And with an eval() you don't need to define the variable, unlike macro expansion:
>>
>>uValue = EVAL("CodeList.Code" + xCode)
>
>Mike, while I like EVAL() as a much better solution, what's wrong with:
>
>uValue = CodeList.Code&xCode

Ed,

Nothing as long as xCode never has any leading spaces.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform