The DspMsgWin procedure display an impromptu (ad hoc) text string in a window.
The DspMsgWin procedure is used to display long text messages in a fixed-size window, to the end-user. The end-user may reply by press F12 or Enter. If the amount of text is greater than will fit on the display window, DspMsgWin will display a "more..." prompt allowing the end-user to use the roll/page keys to scroll through the message text.
DspMsgWin( szMsgText 65535A Const Varying szMsgID 7A Const OPTIONS(*OMIT : *NOPASS ) szMsgFile 21A Const OPTIONS(*OMIT : *NOPASS ) ) |
|
See also: SndMsgID, SndMsg, SndStsMsg, GetMsgText, GetMsgInfo |
*...v....1....v....2
'QCPFMSG *LIBL '
An alternative syntax is also supported for this object name. The alternate syntax allows you to specify the object name similar to that of an OS/400 CL command, that is it may be qualified using qualified name syntax, as follows:
*...v....1....v....2
'QSYS/QCPFMSG '
This procedure does not return a value.
C callp DspMsgWin('Licensed materials. +
C Program copyright 2004 by +
C Robert Cozzi, Jr. All rights +
C reserved.')
In this example the text is displayed in a window to the end-user with a blank title line.