Function SetPos() Foundation

Moves the cursor to a new screen position.

Syntax
SetPos( <nRow>, <nCol> ) --> NIL
Parameters
<nRow>
<nRow> is an integer numeric value in the range of 0 to MaxRow(). It determines the new row position of the cursor on the screen.
<nCol>
<nCol> is an integer numeric value in the range of 0 to MaxCol(). It determines the new column position of the cursor on the screen.
Return

The return value of SetPos() is always NIL.

Description

The function SetPos() sets the cursor to a new position on the screen. The functions Row() and Col() then return the new values. The shape and visibility of the cursor is determined with the function SetCursor().

Examples
SetPos()
// In the example the cursor is first set to a new position, 
// then output occurs on the screen with the command ?? 

PROCEDURE Main 

   SetPos( 13, 30 ) 
   ?? "James Bond's BMW" 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.