ConGetPos command

 

Usage:

ConGetPos Row&, Col&

 

Legacy Syntax:

n/a

 

Pseudo-Object Syntax:

CON.CELL TO Row&, Col&

CON.LOCATE TO Row&, Col&

 

Gets the cursor (caret) position for the active console page.

 

Get the row and column position where the next print will be displayed. Row& and Col& are one-based. The top left page position is 1,1.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  CON.LOCATE TO Row&, Col&

#ELSE

  ConGetPos Row&, Col&

#ENDIF

 

CONSOLE.LOCATE, CON.CELL or CONSOLE.CELL may be substituted for CON.LOCATE.

 

See Also: ConSetPos, ConPosRow, ConPosCol