Description
Deletes the text in the range specified by the cursor objects (in any order).
See also Cursor Object.
Syntax
Text.DelRange (objFrom,objTo) |
ObjFrom
Cursor object specifying the begin of the range of text to delete
ObjTo
Cursor object specifying the end of the range of text to delete
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
EditPasteTo Function, CursorTo Function, GetCursor Function, InsTedTextAt Function, EditCopyRange Function.
DelChar, DelCharLeft, DelLine, DelTableCol, DelTableRow, DelToEndLine, DelWord