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

Syntax:     COL()

Purpose:    To return the current screen column position of the cursor.

Returns:    An integer numeric value.

Usage:      COL() is used when you want to position the cursor to a
            column relative to the current column position.  COL() is
            generally used in combination with ROW() and all variations
            of the @ command.  In particular, you use it and ROW() to
            create screen position-independent procedures or functions
            where you pass the upper left row and column as parameters.

Library:    CLIPPER.LIB


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

   charvar = "This is"
   @ 1, 10 SAY charvar
   @ 1, COL() + 1 SAY "a string"

   Result:

            This is a string


See Also: PCOL() PROW() ROW()

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