Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of Inform() and Severe() methods
Message
From
23/05/2002 15:33:36
 
 
To
23/05/2002 13:29:30
Steven Herbin
SNH Computing Corporation
Swan Lake, New York, United States
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00660616
Message ID:
00660720
Views:
8
Steven:

Why don't you just subclass cmMessage and create your own specialised versions of "Inform" and "Severe". All you would have to do to not change the Inform and Severe call signature(s) too much is add a sixth parameter that will contain your ctitle value. There isn't a lot of code in either method so, in your subclass, simply add your sixth parameter as the argument in the call to displaylastmessage() which should give you what you need. To use your cmMessage subclass in place of the Codemine version, take a look at the "Class Names" category in the "Local" keys. This is the place where you can tell Codemine to load your version of a global object so that it shouldn't break any framework code.

In this way future upgrades/updates to the framework classes will not overwrite your changes. They will be untouched in your sub-class.

HTH
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform