Description
Sets the name of the specified target in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.TargetSetName (long id, string name)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to set the name of the specified target |
id |
The ID of the target to be set |
name |
The target name to be set |
Return value
Integer.
Returns 1 for success and -1 for failure. If any argument's value is null, returns null.
Examples
This example inserts a target called "Test' and changes the target name to "Report" in the RichTextEdit rte_1:
integer li_rtn long ll_id ll_id = rte_1.TargetInsert("Test",false) li_rtn = rte_1.TargetSetName(ll_id,"Report") MessageBox("TargetSetName",string(li_rtn))
See also