Condividi tramite


PROW( ) Function

Returns the current row number of the printer's print head.

PROW( )

Return Values

Numeric

Remarks

If you issue EJECT, Visual FoxPro resets PROW( ) to 0.

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

Example

In the following example, the two commands return the same result. You can use the $ operator in place of PCOL( ). Both $ and PCOL( ) return the current column position of the printer.

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

See Also

@ ... SAY | COL( ) | PCOL( ) | ROW( )