Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting field value
Message
From
01/07/2009 19:04:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/07/2009 19:02:36
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01409674
Message ID:
01409685
Views:
53
>>I prefer not to use macro substitution unless it's necessary and it's not necessary in this case.
>>>
>>>Given alias of current table in cAlias and field name of one of its field cField:
>>>
>>>Is EVALUATE(cAlias + [.] + cField) or &cAlias..&cField better way to retrive field value?
>>>
>>>In this case, when alias and field name are both in variable, is there any other way to retrieve the field value?
>
>I understand why try not to use macro substitution, but why are you saying it is not necessary in this case?

Because you have an alternative - evaluate() in this case.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform