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

GetChildItemByIndex – PB Docs 2019 – PowerBuilder Library

GetChildItemByIndex – PB Docs 2019

GetChildItemByIndex

PowerScript function

Description

Gets the child item in a parent (Category, Panel, or Group)
according to its index in the RibbonBar control.

Applies to

RibbonBar controls

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

Handle

The handle of the parent item whose child item you want to
obtain. The parent item can be Category, Panel, or Group.

Index

The index of the child item you want to obtain.

Item

An item variable in which you want to store the child item
identified by the index.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. 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

This example gets a copy of the “MySmallButton” small button from
the “MyPanel” panel and stores it in the lr_SmallButton
variable.

See also

GetItemByTag

GetItemParent

GetChildItemCount


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