PCOL( ) Function

Returns the current column position of the printer's print head.

PCOL( )

Return Values

Numeric

Remarks

The value PCOL( ) returns is relative to the current setting of the left printer margin. You can set the left margin with SET MARGIN or by storing a value to the system memory variable _PLOFFSET.

PCOL( ) is especially useful for relative addressing of printed text.

You can use the $ operator in place of PCOL( ).

Example

CLEAR
@ PROW( ), PCOL( )+12 SAY 'Contact person'
@ PROW( ), $+12 SAY 'Contact person'

See Also

COL( ) | ROW( ) | PROW( )