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 - getsetmargin() get and set the left margin http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getsetmargin()      Get and set the left margin
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   func uint getsetmargin extern
   param value uint uMargin

 Arguments
   uMargin is the new margin setting.

 Return
   The previous margin setting.

 Description
   The getsetmargin function sets the margin and returns its previous
   value.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_getsetmargin
   vardef
      uint nMargin
   enddef
   nMargin := getsetmargin( 5 )
   ? nMargin                         // prints 0
   ? getsetmargin( nMargin)          // prints 5
   ? getmargin()                     // prints 0
   endproc

   proc main
   Test_getsetmargin()
   endproc

See Also: getmargin() setmargin()

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