SetCursorAtIndex Method (Profile Editor Control)
Windows - Visual C++
Description
The SetCursorAtIndex method moves
the editing window cursor to the specified index.
Syntax
long result = SetCursorAtIndex( long index);
The SetCursorAtIndex syntax has these parts:
Part |
Description |
index |
A long integer specifying the position of the cursor. |
result |
A long integer containing 0, if the operation succeeded, or an error code, otherwise. |
Remarks
This method can be used along with
the SyntaxErrorIndex
property to indicate the point at which a syntax error occurred. An
error will be returned when the specified index is less than or equal
to zero or greater than the length of the text in the embedded edit
control. An index of -1 sets the cuursor at the end of the text.
See Also: Criteria
Back to: Profile Editor Methods