TXT.CELL method

Syntax | TXT.CELL = RowValue&, ColValue& TXT.CELL TO RowVar&, ColVar& TXT.COL TO ColVar& <or> ColVar& = TXT.COL TXT.ROW TO RowVar& <or> RowVar& = TXT.ROW

Remarks

TXT.CELL is used to set or retrieve the cursor 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 Text Window is considered to be cell 1,1.

The first form of TXT.CELL moves the cursor 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 TXT.CELL retrieves the current cursor position, and assigns the values to the variables specified by RowVar& and ColVar&.

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