Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Deleting items – PB Docs 2021 – PowerBuilder Library

Deleting items – PB Docs 2021

Deleting items

To allow the user to delete items, enable the TreeView’s
DeleteItems property. When the user presses the Delete key, the selected
item is deleted and the DeleteItem event is triggered. Any children are
deleted too.

If you want more control over deleting, such as allowing deleting
of detail items only, you can call the DeleteItem function instead of
setting the property. The function also triggers the DeleteItem
event.

Example

This script is for a TreeView user event. Its event ID is
pbm_keydown and it is triggered by key presses when the TreeView has
focus. The script checks whether the Delete key is pressed and whether
the selected item is at the detail level. If both are TRUE, it deletes
the item.

The value of the TreeView’s DeleteItems property is FALSE.
Otherwise, the user could delete any item, despite this code:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x