Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution - When to use &X and when to use (X)
Message
De
01/07/2004 08:31:18
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00919528
Message ID:
00919582
Vues:
7
>Are there any guidelines as when we can use (X) and when we need to use &X ? I know that (X) is faster, but it dooes not always work?

YOu can use the parens, (x), wherever VFP expects a single name (a file name, a field name). Otherwise, you need either EVAL() or &.

If you have FoxPro Advisor, check out the April, 2002 issue. I answered this question at length there.

There's also a topic for it in the Hacker's Guide that explains the differences.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform