SetPosition Method (TextField)

Class

TextField.

Action

Sets the insertion point in the text field.

Syntax

texfield.SetPosition (iLine, iCol)
Variable Description
iLine The line to move to. INTEGER.
iCol The column to move to. INTEGER.

Notes

SetPosition sets the insertion point in the text field at the specified location.

Example

	[ ] INTEGER x
	[-] for x = 1 to 4
		[ ] TextEditor.Document.SetPosition (x, 1)
		[ ] TextEditor.Document.TypeKeys ("<Shift-End>")
		[ ] Verify (TextEditor.Document.GetSelText (), "Line {x}")