Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CLR and VFP
Message
 
À
28/08/2000 13:11:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00409695
Message ID:
00409924
Vues:
24
FWIW it's worth Erik, I agree with you here...

Macro Substition is an over-valued feature...

>>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")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform