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

TotalItems – PB Docs 2021 – PowerBuilder Library

TotalItems – PB Docs 2021

TotalItems

PowerScript function

Description

Determines the total number of items in a ListBox or
RibbonComboBoxItem control.

Applies to

ListBox, DropDownListBox, PictureListBox, DropDownPictureListBox,
ListView, and RibbonComboBoxItem controls

Syntax

Argument

Description

listcontrolname

The name of the ListBox, DropDownListBox, PictureListBox,
DropDownPictureListBox, ListView, or RibbonComboBoxItem in which
you want the total number of items

Return value

Integer.

Returns the total number of items in listcontrolname. If
listcontrolname contains no items, TotalItems returns 0. If an error
occurs, it returns -1. If listcontrolname is null, TotalItems returns
null.

Examples

If lb_Actions contains a total of five items, this example sets
Total to 5:

This FOR loop is executed for each item in lb_Actions:

This example gets the total item of the RibbonBar ComboBox:

See also

TotalSelected


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