Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cool idea for SET commands
Message
 
À
27/07/2004 10:03:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00928029
Message ID:
00928286
Vues:
36
Normally, in a method, to set a SET statement, you would sometimes do:
lcSaveSetting = SET("TALK")
SET TALK OFF

* other code here

SET TALK &lcSaveSetting
Thats 3 lines of code just for one SET statement. Consider that in some cases
you would do this for multiple SET statements.

With this idea, you could have:
oTalk = CREATEOBJECT("SetCommand", "TALK", "OFF")
Thats 1 line of code. Seems reasonable to me.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform