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

GetChildItemCount – PB Docs 2022 – PowerBuilder Library

GetChildItemCount – PB Docs 2022

GetChildItemCount

PowerScript function

Description

Determines the total number of child items in a parent (Category,
Panel, or Group) of the RibbonBar control.

Applies to

RibbonBar
control

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

Handle

The handle of the parent object whose child items you want
to count. The parent object can be Category, Panel, or
Group.

Return value

Integer.

Returns the total number of child items in the parent. If the parent
contains no items, returns 0. If an error occurs, returns -1. If any
argument’s value is null, returns null.

Usage

The parent object can be Category, Panel, or Group.

The child item for Category is Panel; the child item for Panel can
be Group, LargeButton, SmallButton, CheckBox, and ComboBox; the child item
for Group can be SmallButton, CheckBox, and ComboBox.

Examples

The following code example counts the panels in the “TestCategory”
category and returns 2.

See also

GetChildItemByIndex

GetItemByTag

GetItemParent


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