Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why we use????
Message
De
16/11/2000 06:07:24
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
16/11/2000 04:47:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00442534
Message ID:
00442546
Vues:
8
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform