DeleteItem event
The DeleteItem event has different arguments for different
objects:
|
Object |
See |
|---|---|
|
ListView control |
|
|
TreeView control |
Syntax 1 For ListView controls
Description
Occurs when an item is deleted.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_lvndeleteitem |
ListView |
Parameters
|
Argument |
Description |
|---|---|
|
index |
Integer by value |
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Examples
This example for the DeleteItem event displays a
message with the number of the deleted item:
|
1 |
MessageBox("Message", "Item " + String(index) & |
|
1 |
   + " deleted.") |
See Also
Syntax 2 For TreeView controls
Description
Occurs when an item is deleted.
Event ID
|
Event ID |
Objects |
|---|---|
|
pbm_tvndeleteitem |
TreeView |
Parameters
|
Argument |
Description |
|---|---|
|
handle |
Long by value (the |
Return Values
Long. Return code choices (specify in
a RETURN statement):
-
0 Continue
processing
Examples
This example displays the name of the deleted item
in a message:
|
1 |
TreeViewItem ll_tvi |
|
1 |
|
1 |
This.GetItem(handle, ll_tvi) |
|
1 |
MessageBox("Message", String(ll_tvi.Label) & |
|
1 |
   + " has been deleted.") |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest