Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cool idea for SET commands
Message
De
27/07/2004 12:38:25
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00928029
Message ID:
00928363
Vues:
32
Hi Kevin

>But honestly, you could get away with not using the LOCAL. The variable will still
>drop out of scope. Not appropriate, IMHO, but it would work.

Not necessarily. A variable is private by default. If it was declared in a calling method, it would not go out of scope upon exiting the called routine and your settings would not be reset.

>Seems to me your coming up with fuzzy reasons to knock this method. If it doesn't work
>for you, so be it. But I get cleaner code with one line instead of the multiple lines
>needed to Set & Reset SET statements.

I didn't see David's responses as knocking your method. In fact using his methods in combination with yours seems like the best solution.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform