Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> wsmsgmdeget() / wsmsgmdeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSMsgMdeGet() / WSMsgMdeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the workstation message mode.

 Syntax:
 iMode = WSMsgMdeGet()
 iMode = WSMsgMdeSet( iNewMode )

 Parameters:
 iNewMode The new message mode to set.

 Returns:
 A numeric value (signed short int).

 Description:
 WSMsgMdeGet() returns the current message mode of the workstation.

 WSMsgMdeSet()sets the message mode to iNewMode.

 Returns NOVERRINT if an error occurs. The message mode is a number between
 0 and 3:

 Example:
 // To display the current message mode:
 iCurrMode = WSMsgMdeGet()
 if ( iCurrMode != NOVERRINT )
    ? "The current message mode is", iCurrMode
 endif
 // To set the message mode so that all messages are to be stored:
 iOldMode = WSMsgMdeSet(3)
 iCurrMode = WSMsgMdeGet()
 if ( iCurrMode = 3 )
    ? "All messages will be stored for retrieval by the program"
 endif

 Notes:
 See Chapter 8, Message Functions for more details on the message
 mode.

See Also: WSMsgGet() WSMsgSnd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson