The
Message object
Contents
The Message object is a predefined PowerBuilder global object (like
the default Transaction object SQLCA and the Error object) that is used in
scripts to process Microsoft Windows events that are not
PowerBuilder-defined events.
When a Microsoft Windows event occurs that is not a
PowerBuilder-defined event, PowerBuilder populates the Message object with
information about the event.
Other uses of the Message
object
The Message object is also used:
-
To communicate parameters between windows when you open and
close themFor more information, see the descriptions of OpenWithParm,
OpenSheetWithParm, and CloseWithReturn in the section called “OpenWithParm” in PowerScript Reference,
the section called “OpenSheetWithParm” in PowerScript Reference, and the section called “CloseWithReturn” in PowerScript Reference. -
To pass information to an event if optional parameters were used
in TriggerEvent or PostEventFor more information, see the section called “TriggerEvent” in PowerScript Reference and
the section called “PostEvent” in PowerScript Reference.
Customizing the Message
object
You can customize the global Message object used in your application
by defining a standard class user object inherited from the built-in
Message object. In the user object, you can add additional properties
(instance variables) and functions. You then populate the user-defined
properties and call the functions as needed in your application.
For more information about defining standard class user objects, see
the section called “Building a standard class user object” in Users Guide.