Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_setcursor() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SETCURSOR()

 DESCRIPTION

 C_SETCURSOR() sets the real cursor to the given row and column location.

 NOTES

 The C_SETCURSOR() function does not change Clipper's internal
 cursor setting.

 SYNTAX

 C_SETCURSOR(row, column)

 PARAMETERS

 row (N) is the row location to set.

 column (N) is the column location to set.

 RETURNS

 There is no return value.

 EXAMPLES

 xrow = 10
 xcol = 10

 c_setcursor(xrow,xcol)         && Set the cursor to row 10, column 10

 do while .t.
   key = inkey(0)               && Get key from user

   case key = 4                 && Right arrow key - go right 1
     xcol = xcol + 1            && Add 1 to column
     c_setcursor(xrow,xcol)     && Move cursor to new location

   case key = 19                && Left arrow key - go left 1
     xcol = xcol - 1            && Subtract 1 from column
     c_setcursor(xrow,xcol)     && Move cursor to new location
   ...
   ...
   endcase
 enddo


See Also: C_GETCURROW() C_GETCURCOL() C_CURSIZE() C_ISCURSOR()

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