Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of macro substitution vs. string valued variables
Message
De
22/07/1999 13:08:46
 
 
À
21/07/1999 21:04:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00244254
Message ID:
00244849
Vues:
23
>Very very well done, David!! Maybe MS will find room for this in subsequent documentation.
>
>Cheers,
>
>Jim N
>


I agree, the explaination was excellent.

One point I might add is to try to avoid macros if at all possible since I think they pollute memory. Your first example could be written:

IF UPPER(myOffOnStringVariable) = "ON"
SET EXCLUSIVE ON
ELSE
SET EXCLUSIVE OFF
ENDIF

Which will run more effeciently.

Macros are incredibly powerful, but I use them only in stituations that cannot be handled with regular code, name expressions, or the EVALUATE() command.

David,
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform