Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CLR and VFP
Message
De
28/08/2000 16:33:53
 
 
À
28/08/2000 13:11:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00409695
Message ID:
00410011
Vues:
20
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform