EditPasteTo Method

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

Description

Pastes block from clipboard at the specified position.

See also Cursor Object

Syntax

Text.EditPasteTo objPos

ObjPos

Cursor object specifying the position.

Return value

Error code

Context

Text designer commands

Example

Swap the characters after the cursor:

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

Dim objTo = objFrom.Duplicate

objTo.Move (1)

Text.EditCopyRange (objFrom,objTo)

Text.DelRange (objFrom,objTo)

objFrom.Move (1)

Text.EditPasteTo (objFrom)

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

See also

EditPaste, EditPasteText, EditPasteTo, EditPasteEx