Description
Gets the name of the specified target in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.TargetGetName (long id)
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to get the name of the specified target |
id |
The target ID you want to obtain |
Return value
String.
Returns the name of the target if it succeeds and returns an empty string (" ") if an error occurs. If the id argument is null, the function returns null.
Examples
This example gets the name of the target through the target ID in the RichTextEdit rte_1:
string ls_targetname long ll_id ll_id = rte_1.TargetInsert("Test",false) rte_1.TargetSetName(ll_id,"Report") ls_targetname= rte_1.TargetGetName(ll_id) MessageBox("TargetGetName",ls_targetname)
See also