Description
Gets the next target ID of the specified target.
Applies to
RichTextEdit controls
Syntax
rtename.TargetNext (long id)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to get the next target ID of the specified target |
id |
The next target ID of the specified target. If you want to get the first target ID, this value should be set to 0. |
Return value
Long.
Returns the next target ID of the specified target. If the next target does not exist, the function returns -1. If any argument's value is null, returns null.
The return value is determined by the order of the target position rather than the order of the target ID, so the returned target IDs are not necessarily ordered.
Examples
This example gets the next target ID of the specified target in the RichTextEdit rte_1:
long ll_rtn ll_rtn = rte_1.TargetNext(8)
See also