TargetDelete

Description

Deletes the target according to the specified ID in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.TargetDelete (long id)

Argument

Description

rtename

The name of the RichTextEdit control in which you want to delete the target

id

The ID of the target to be deleted


Return value

Integer.

Returns 1 for success and -1 for failure. If any argument's value is null, returns null.

Note

If you delete a target whose ID does not exist, the function will return 1.

Examples

This example inserts a target called "Test" and deletes the target according to ID in the RichTextEdit rte_1:

integer li_rtn
long ll_id

ll_id = rte_1.TargetInsert("Test",false)
li_rtn = rte_1.TargetDelete(ll_id)
MessageBox("TargetDelete",string(li_rtn))

See also

TargetInsert