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

TotalSelected – PB Docs 150 – PowerBuilder Library

TotalSelected – PB Docs 150

TotalSelected PowerScript function

Description

Determines the number of items in a ListBox control that are
selected.

Controls

ListBox, PictureListBox, and ListView controls

Syntax

Argument

Description

listcontrolname

The name of the ListBox, PictureListBox,
or ListView in which you want the number of items that are selected

Return Values

Integer. Returns the number of items
in listcontrolname that are selected. If no items
in listcontrolname are selected, TotalSelected returns
0. If an error occurs, it returns -1. If listcontrolname is null, TotalSelected returns null.

Usage

TotalSelected works only if the MultiSelect
property of listcontrolname is TRUE.

Examples

If three items are selected in lb_Actions,
this example sets SelectedTotal to 3:

These statements in the SelectionChanged event of lb_Actions display
a MessageBox if the user tries to select more than three items:

See Also


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