Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cool idea for SET commands
Message
 
To
27/07/2004 10:03:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00928029
Message ID:
00928286
Views:
38
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform