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

 Syntax
   func logical getsetcentury extern
   param value logical lOn

 Arguments
   lOn is the new setting for the flag.

 Return
   A logical indicating the previous setting of the respective system flag.

 Description
   The getsetcentury() function sets the century flag and returns its
   previous setting.

 Example
   #define EXAMPLE_DATE
   #include example.hdr

   proc Test_getsetcentury
   vardef
      logical lCentury
   enddef
   ? getcentury()                   // print .f. (century is off by default)
   lCentury := getsetcentury( .t. ) // save and set century flag
   ? getcentury()                   // print .t.
   getsetcentury( lCentury )        // reset century flag to original value
   ? getcentury()                   // print .f.
   endproc

   proc main
   Test_getsetcentury()
   endproc

See Also: getcentury() setcentury()

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