Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting field value
Message
 
 
To
01/07/2009 19:07:37
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:
01409694
Views:
36
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform