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 - getmaxrow() return the maximum screen row number http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getmaxrow()         Return the maximum screen row number
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   func uint getmaxrow extern

 Arguments
   None.

 Return
   Maximum screen row value.

 Description
   getmaxrow() returns the maximum value for screen rows (default: 25).
   Use of this function if you want to make your applications to respect the
   current active screen size at run-time.

   Screen row values are 0-based, i.e. the top row is 0, and on a 25-row
   screen, the bottom row is 24.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_getmaxrow
   vardef
      char( 80 ) cStatus
   enddef
   // Display status information on the bottom line of the screen
   cStatus := "Database contains deleted records"
   @ getmaxrow(), 0 ?? cStatus
   getkey()
   endproc

   proc main
   Test_getmaxrow()
   endproc

See Also: getmaxcol() row() setmaxrowcol()

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