Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution slow
Message
From
23/06/2000 11:21:42
 
 
To
23/06/2000 11:07:12
Bob Smith
Custom Data Services, Inc.
Mansfield, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00383777
Message ID:
00383787
Views:
28
>When I use macro substitution in queries on larger tables it is considerably slower than ruuning the query with the values instead.
>Does anybody have any ideas on this ?
>Thanks for any help in advance.

Straight from the help file:
*******
Tip Whenever possible, use a name expression instead of macro substitution. A name expression operates like macro substitution. However, a name expression is limited to passing character strings as names. Use a name expression for significantly faster processing if a command or function accepts a name (a file name, window name, menu name, and so on).

For additional information on name expressions, see Overview of the Language.

While the following commands are acceptable:

STORE 'customer' TO gcTableName
STORE 'company' TO gcTagName
USE &gcTableName ORDER &gcTagName

use a name expression instead:

USE (gcTableName) ORDER (gcTagName)
********
Post your code and maybe someone will point out an alternative to macro substitution.

Jon
Previous
Reply
Map
View

Click here to load this message in the networking platform