TargetDelete
PowerScript function
Description
Deletes the target according to the specified ID in a RichTextEdit
control.
Applies to
RichTextEdit controls
Syntax
|
1 |
rtename.TargetDelete (long id) |
|
Argument |
Description |
|---|---|
|
rtename |
The name of the RichTextEdit control in which you want to |
|
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:
|
1 2 3 4 5 6 |
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
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest