Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting field value
Message
 
 
À
01/07/2009 19:07:37
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:
01409694
Vues:
35
>I find this in Hacker's Guide:
>
>"In a command that will be executed repeatedly, it's generally better to use a macro than EVALUATE(). The macro is expanded once and substituted into the command while an EVALUATE() expression is evaluated each time the command executes. This is also true for scoped commands that apply to multiple records, like the BROWSE above. The macro is expanded once and the result used on each record; EVALUATE() is re-evaluated for each record. So, for the BROWSE above, you're better off issuing:
>
>BROWSE FOR &cExpression
>"
>It seems that if I need to feed a scope command with field (which is determined by variables) value, I should use the latter, otherwise if I only need to retrieve the field value once, then may be I should use EVALUATE().

Yes, you're correct - also I believe the same info can be found in the FAQ I pointed you too.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform