Syntax 1: For Listboxes – PB Docs 2017

Syntax
1: For Listboxes

Description

Occurs when an item is selected in the control.

Event ID

Event ID

Objects

pbm_cbnselchange

DropDownListBox,
DropDownPictureListBox

pbm_lbnselchange

ListBox, PictureListBox

Arguments

Argument

Description

index

Integer by value (the index of the item that has
become selected)

Return Values

Long.

Return code choices (specify in a RETURN statement):

0 — Continue processing

Usage

For DropDownListBoxes, the SelectionChanged event applies to
selections in the drop-down portion of the control, not the edit
box.

The SelectionChanged event occurs when the user clicks on any item
in the list, even if it is the currently selected item. When the user
makes a selection using the mouse, the Clicked (and if applicable the
DoubleClicked event) occurs after the SelectionChanged event.

Examples

This example is for the lb_value ListBox in the window
w_graph_sheet_with_list in the PowerBuilder Examples application. When
the user chooses values, they are graphed as series in the graph gr_1.
The MultiSelect property for the ListBox is set to true, so index has no
effect. The script checks all the items to see if they are
selected:

See also

Clicked


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