Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>maxrow() - get the maximum allowable row number</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     maxrow() - get the maximum allowable row number
  Usage:    <integer> = maxrow()
  Params:   none
  Returns:  integer equal to the maximum allowable row number

 ---------------------------------- Example ---------------------------------

                 box(0,0,maxrow(),maxrow())
                 * draws a box around the screen, independent
                 * of any screen modes.

                 setmode(43)         && 80x43
                 ? maxrow()          && prints 42

                 setmode(3)          && normal 80x25
                 ? maxrow()          && prints 24

  Note:     This function is important since you may change the
            size of the screen by using the setmode() command, or
            the setscreen() command. If you setscreen() to a new size
            window, then maxrow() returns the maximum allowable
            row number for the size screen you set with setscreen().
            Using maxrow() in your functions can ensure that your
            routines will work regardless of the current video mode
            or screen size.


See Also: maxcol() setmode()

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