
BBjCommandLineObject::setMessage
Description
In BBj 23 and higher, this method sets a default BBjSessionInfo message in the BBjCommandLineObject.
Syntax
Return Value |
Method |
---|---|
void |
setMessage(string message) |
Parameters
Variable | Description |
---|---|
message | Specifies a default message to be returned from BBjSessionInfo getMessage if STBL("!SESSIONINFO") is not set. |
Return Value
None.
Remarks
In BBj 23 and higher, this value can be specified from the command-line as –message=<message>.
Example
Copy
BBjCommandLineObject::setMessage Example
cmd! = bbjapi().getConfig().getCurrentCommandLineObject()
cmd!.setMessage("Processing payroll")
print cmd!.getMessage()
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.