GetPosition Function (TextField)

Class

TextField.

Action

Returns the line and column position of the insertion point.

Syntax

tPosition = textfield.GetPosition()
Variable Description
tPosition The position of the insertion point. TEXTPOS.

Notes

GetPosition returns a record of type TEXTPOS, which has two fields:

Field Description
iLine The current line. INTEGER.
iCol The current column. INTEGER.

Example

TEXTPOS Position;
Position = TextEditor.Document.GetPosition()
Verify(Position.iLine, 1, "Check current position")
Verify (Position.iCol, 1, "Check current position")