Description
Returns true if the cursor position is equal to the position of objCursor (another Cursor object) in the text. See also IsBefore Method.
Syntax
dim bValue as Boolean = object.IsEqual(objCursor) |
object
Required. Object name, returned by Text.GetCursor(...).
objCursor
Required. Another object name, returned by Text.GetCursor(...).
Example
The below example returns TRUE because the virtual cursor of the objFrom object is not moved before the objFrom was created by duplicating from the objFrom object.
Dim objFrom = Text.GetCursor(modeSame,cposCursor,True)
objFrom.Move (0)
Dim objTo = objFrom.Duplicate
msgbox (Text.GetCursor(modeSame,cposCursor,True).IsEqual (objTo))
For the meaning of the standard constants see Constants related to Cursor and TxtPosDesc object.