RPGspGetMsg Function
Retrieves a message from a message file by message id.
Syntax
RPGspGetMsg(message id : message file [: library : help text])
Part | Description |
message id | Required. Character expression representing the message id of the message to retrieve. |
message file | Required. Character expression representing the message file to retrieve a message from. |
library |
Optional. Character expression representing the library that contains the message file. *LIBL is used if this parameter is omitted. |
help text | Optional. Indicator value that determines what type of message to return. The "first level" message text is returned by default. If *On is passed for this parameter, the message help text will be returned instead. |
Remarks
The function returns a varying length character field containing the text for the specified message id. An empty string is returned if the message id is not found in the message file and library specified.
Examples
The following example demonstrates the use of RPGspGetMsg to retrieve the message text for message CPF4101 in message file QCPFMSG. The message is then output to the browser using RPGspOut.
See Also
Profound
Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925