Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CLR and VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00409695
Message ID:
00409872
Views:
32
>No way! Macro substitution is one of the most useful features in VFP.

Why? What do you use it for that couldn't easily be replaced? AFAIC, the only legit uses for macro substitution are constructing SQL statements, and the few places where they are necessary because a command doesn't accept a named expression. Except for these, most other uses for macro substitution should be replaced with other methods like EVAL(), or just a refactor.

I would throw away macros altogether if we had the equivalent of the two following imaginary functions:

=RUNSQL("SELECT * FROM MyTable INTO CURSOR Whatever")

=SETENV("EXCLUSIVE", "ON")
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform