Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CLR and VFP
Message
From
28/08/2000 16:33:53
 
 
To
28/08/2000 13:11:39
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00409695
Message ID:
00410011
Views:
21
>>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")

Have you ever looked at SBT code? If you removed macro substitution from VFP, SBT will not run and will require a complete rewrite (which, IMO, needs to be done anyway).
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform