Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>prow()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PROW()


Syntax:     PROW()

Purpose:    To return the current row position of the print head.

Returns:    An integer numeric value.

            EJECT resets PROW() to zero.  If you need to reset the
            internal printer column value without performing an EJECT,
            use SETPRC().  Be aware that if you move the print head with
            CHR(10), Clipper is not aware of this and PROW() will not
            return the expected value.

Usage:      PROW() helps you keep track of the print head row position.
            It is useful when you want to place text on a line relative
            to another line on a page.

Library:    CLIPPER.LIB


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

   SET DEVICE TO PRINT
   @ 10, 0 SAY "First string"
   @ PROW() + 1, 0 SAY "Second string"

   Result:

   First string
   Second string


See Also: COL() PCOL() ROW() SETPRC()

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