ConSetPos command

 

Usage:

ConSetPos Row& [, Col&]

 

Legacy Syntax:

LOCATE [Row&] [,[Col&]]

 

Pseudo-object Syntax:

CON.CELL [Row&] [,[Col&]]

CON.LOCATE [Row&] [,[Col&]]

 

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

 

Sets the row and column position where the next print will be displayed. Row& and Col& are one-based. The top left screen position is 1,1. If either expression is missing or invalid, that coordinate is left unchanged.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  LOCATE Row&, Col&

#ELSE

  ConSetPos Row&, Col&

#ENDIF

 

#IF %DEF(%PB_CC32)

  LOCATE Row&

#ELSE

  ConSetPos Row&

#ENDIF

 

#IF %DEF(%PB_CC32)

  LOCATE , Col&

#ELSE

  ConSetPos -1, Col&

#ENDIF

 

CON.LOCATE, CONSOLE.LOCATE, CON.CELL or CONSOLE.CELL may be substituted for LOCATE in programs written for PB/CC 6.

 

See Also: ConGetPos, ConTab