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> wsmsgget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 WSMsgGet()
------------------------------------------------------------------------------
 Purpose:
 Get a message received from another user.

 Syntax:
 lpszMessage = WSMsgGet()

 Parameters:
 None.

 Returns:
 A character string of length 254.

 Description:
 WSMsgGet() returns a character string containing the next available
 message which has been sent to the workstation. Returns an empty string
 if no messages exist to retrieve, or if an error occurs.

 To use this function, the workstation message mode must be set to 2 or 3
 using the WSMsgMdeSet() function. If the message mode is set to 0 or
 1, messages are retrieved automatically by the NetWare shell and displayed
 at the bottom of the screen.

 Example:
 // To retrieve a message:
 lpszMessage = WSMsgGet()
 if ( !empty( lpszMessage ) )
    ? "The last message received was", lpszMessage
 endif

 Notes:
 If an empty string is returned, check NWErrorGet().

See Also: WSMsgMdeGet() / WSMsgMdeSet() WSMsgSnd()

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