Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution - When to use &X and when to use (X)
Message
From
01/07/2004 08:31:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00919528
Message ID:
00919582
Views:
8
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform