Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why we use????
Message
From
16/11/2000 06:07:24
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
16/11/2000 04:47:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00442534
Message ID:
00442546
Views:
14
>Dear All,
>
>What is the diference between indirection refrencing
>Select(test)
>
>and macro subtitution
>set near &nOld
>
>The question is this.
>
>I want to clear my logic where they will use and how we determin.
>let me know and oblidge.
>
>Yours truly,
>
>Nafees

Hi,

The main problem is that macro substitution is extremely slow. The EVALUATE function and name substitution (using brackets as in your example) were introduced to speed up substitution where in scenarios where it was often used most.

Try a test program looping through 10,000 "select &lcvar" commands, then compare with the time for 10,000 "select (lcVar)".
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform