Description
Moves the cursor of the specified number of position to the right (to the left if the number is negative).
Returns 0 if successful, otherwise it returns the number of positions NOT moved yet (e.g. if the cursor is one position before the end of the text a Move(3) call will move the cursor to the left by 1 position - to the end of the text - and return 2 = 3 - 1).
See also MoveCell Method and MoveWord Method.
Syntax
dim NotMoved as Long = object.Move (nOffset) |
object
Required. Object name, returned by Text.GetCursor(...).
nOffset
Integer. If positive, number of positions to move right; if negative, number of positions to move left
Example
See the example in Duplicate.
For the meaning of the standard constants see Constants related to Cursor and TxtPosDesc object.