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

Syntax:     SETRC([<expN1>][,<expN2>])

Arguments:  <expN1> is the desired new cursor line.
            <expN2> is the desired new cursor column.

Returns:    A character string.
            A null string is always returned.

Usage:      This function sets the internal values for the actual
            line (ROW()) and column (COL()).  It also moves the cursor
            to the selected position at the same time.  If the output to
            the screen is not from Clipper, the internal Clipper values for
            the cursor (which is controlled in the BIOS).  The position
            inside Clipper, supplied by BIOS, will be set if SETRC() is
            called without arguments.

Notes:      Values for the lines or the columns that are either to large
            or are negative are automatically corrected.  It it is required
            to use the BIOS for the column position, but to change the
            row, then simply pass the wrong data type.

Library:    CT1.LIB


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

Examples:   * Set BIOS line and column in Clipper
            * and display.
            SETRC()
            ? ROW(), COL()

            * Use the line from BIOS and the column
            * from Clipper.
            SETRC("",COL())
            ? ROW(), COL()

            * Use the line from Clipper and the column
            * from BIOS.
            SETRC("",ROW())
            ? ROW(), COL()



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