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>maxcol() - get the maximum allowable column number</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     maxcol() - get the maximum allowable column number
  Usage:    <integer> = maxcol()
  Params:   none
  Returns:  integer equal to the maximum allowable column number

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

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

                 setmode(1)          && 40x25
                 ? maxcol()          && prints 39

                 setmode(3)          && normal 80x25
                 ? maxcol()          && prints 79

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

  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 maxcol() returns the maximum allowable
            column number for the size screen you set with setscreen().
            Using maxcol() in your functions can ensure that your
            routines will work regardless of the current video mode
            or screen size.


See Also: maxrow() setmode()

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