Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CLR and VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00409695
Message ID:
00409872
Vues:
34
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform