XPRINT CELL statement

Purpose | Sets or retrieves the next print position (LPR - Last Point Referenced), based upon the row and column position of a text cell.

Syntax

XPRINT CELL = RowValue&, ColValue&

XPRINT CELL TO RowVar&, ColVar&

XPRINT COL TO ColVar&

XPRINT ROW TO RowVar&

Function Form:

ColVar& = XPRINT(COL)

RowVar& = XPRINT(ROW)

Remarks

XPRINT CELL is used to set or retrieve the print position, based upon the row and column position of a Text Cell. That is the row and column position where the next printed text will be displayed. RowValue& specifies the horizontal screen row (starting at 1) at which to position the cursor. ColValue& specifies the vertical screen column (starting at 1) at which to position the cursor. Since row and column numbers start at one (1), the upper left corner of the page is considered to be cell 1,1.

The first form of XPRINT CELL moves the print position to the desired row and column. If a value given is zero (0), that parameter is ignored and that position is not changed. The second form of XPRINT CELL retrieves the current print position, and assigns the values to the variables specified by RowVar& and ColVar&.

The remaining forms allow you to retrieve just a single value, either row or column, and are supported in both statement and function form.

See also | XPRINT CELL SIZE, XPRINT SET FONT, XPRINT SET WORDWRAP, XPRINT SET WRAP, XPRINT SPLIT