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

GetCategoryByIndex – PB Docs 2019 – PowerBuilder Library

GetCategoryByIndex – PB Docs 2019

GetCategoryByIndex

PowerScript function

Description

Gets the category according to its index in the RibbonBar
control.

Applies to

RibbonBar controls

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

Index

The index of the category which you want to obtain.

Item

A RibbonCategoryItem variable in which you want to store
the category 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

You can also get the category according to its handle by using the
GetCategory function or the GetItem function.

Examples

The following code example gets a copy of the category whose index
number is 1 and stores the copy in the lr_Category
variable.

See also

InsertCategory

InsertCategoryFirst

InsertCategoryLast

DeleteCategory

SetCategory

GetCategory

GetCategoryCount

GetCategoryIndex

SetActiveCategory

GetActiveCategory


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