Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting field value
Message
 
 
À
01/07/2009 18:21:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01409674
Message ID:
01409677
Vues:
73
>Hi,
>
>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?

The first is much better. evaluate is the only way, like you showed (the table should be opened with the alias cAlias)

See Choosing between Macro substitution and Name expressions FAQ #7841
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform