Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - getsetmessage() get and set the message line http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getsetmessage()     Get and set the message line
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   func uint getsetmessage extern
   param value uint uLine

 Arguments
   uLine is the new message line row.

 Return
   The previous message line row.

 Description
   The getsetmessage() function sets the message line row and returns its
   previous value.

 Example
   #define EXAMPLE_MENU
   #include example.hdr

   proc Test_getsetmessage
   vardef
      uint nMessage
   enddef
   nMessage := getsetmessage( 0 )
   ? nMessage                         // prints 24
   ? getsetmessage( nMessage)         // prints 0
   ? getmessage()                     // prints 24
   endproc

   proc main
   Test_getsetmessage()
   endproc

See Also: getmessage() setmessage()

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