CursorTo Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:18

Description

Moves the cursor to the position specified by the Cursor object.

Syntax

Text.CursorTo (objPos)

ObjPos

Cursor object specifying the position.

Return value

Error code

Context

Text designer commands

Example

Moves the cursor to the tabulation cell above and to the right

Dim objCur = Text.GetCursor(modeSame,cposCursor,True)

If objCur.MoveCell(True,-1) = 0 Then

If objCur.MoveCell(False,1) = 0 Then

   Text.CursorTo objCur

End If

End If

For the meaning of the standard constants (eg. modeSame, cPosCursor) etc, see Ted constants related to Cursor and TxtPosDesc object.

See also

EditPasteTo Function, GetCursor Function, InsTedTextAt Function, EditCopyRange Function, DelRange Function.