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>setprc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SETPRC()


Syntax:     SETPRC(<expN1>, <expN2>)

Purpose:    To SET the internal PROW() and PCOL() to the specified
            values.

Arguments:  <expN1> is the new internal row position.

            <expN2> is the new internal column position.

Returns:    There is no return value.

Usage:      SETPRC() is useful for sending a setup string to the printer
            without changing print head position.  In addition, this
            function can be used to suppress page ejects.

Library:    CLIPPER.LIB


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

   The following user-defined function can be used in expressions sent
   to the printer using SET DEVICE TO PRINT without affecting the PROW()
   and PCOL() values.

   FUNCTION PrintCodes
   PARAMETER ctrl_code

   SET PRINT ON
   row = PROW()
   col = PCOL()

   ?? ctrl_code

   SETPRC(row, col)
   SET PRINT OFF

   RETURN


See Also: SET DEVICE PCOL() PROW()

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