TotalItems PowerScript function
Description
Determines the total number of items in a ListBox control.
Controls
ListBox, DropDownListBox, PictureListBox, DropDownPictureListBox,
and ListView controls
Syntax
|
1 |
<span>listcontrolname</span>.<span>TotalItems</span> ( ) |
|
Argument |
Description |
|---|---|
|
listcontrolname |
The name of the ListBox, DropDownListBox, PictureListBox, |
Return Values
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:
|
1 |
integer Total |
|
1 |
Total = lbx_Actions.<span>TotalItems</span>() |
This FOR loop is executed for
each item in lb_Actions:
|
1 |
integer Total, n |
|
1 |
Total = lb_Actions.<span>TotalItems</span>() |
|
1 |
FOR n = 1 to Total |
|
1 |
... // Some processing |
|
1 |
NEXT |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest