createaction, the message is transient and can be deleted with the
deleteaction. You can
transfersuch messages to a particular workspace, and also change the text, text-color, and background-color by using a
change the text ofor a
Use these actions when working with messages:
Changing the Color Attributes of Message Properties
Messages have three color attributes that you can change programmatically:
changeaction, as the next two examples show. In the first example, the action changes the
text-colorcolor attribute. In the second, use the
change the color-pattern ofaction to change all the message's color attributes.
Changing the Text of a Message
change the text of action to change the contents of a message, as the following example illustrates.
change action lets you change the text of any free-text or message programmatically.
Concluding Message Text into a Variable or Parameter
You can conclude a new value for a text variable, text parameter, or any attribute that receives a value from a text variable or text parameter, using a text-expression. The text-expression could be the text of a message, as the next example illustrates.
In this example,
text-var is the name of a text variable, into which G2 concludes the text of the message,
Creating and Transferring Transient Messages
Create and transfer messages with the
transfer actions. The next example shows you how to create a transient message and transfer it to the workspace of the action button from which it was created.
Transient messages are deleted automatically whenever you reset the KB.
Deleting Transient Messages
delete action to delete a transient message. The next example deletes every transient message upon a particular workspace.