TXTextControl.TargetNext Method

This method returns the identifier of the link target that follows the specified target in the Text Control's current text. It can be used to find the next target in the text or to enumerate all targets.

Introduced: 28.0.

Syntax

TXTextControl.TargetNext TargetId
Parameter Description
TargetId

Specifies the target's unique identifier. This must be the value returned from the TargetInsert method. If this parameter is zero, the identifier of the first target is returned.

Return Value

The method returns the identifier of the target that follows the specified target. It returns zero when there is no following target.

Data Types

TargetId: Long
Return value: Long

See Also