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

SetCategory – PB Docs 2019 – PowerBuilder Library

SetCategory – PB Docs 2019

SetCategory

PowerScript function

Description

Sets the category for the RibbonBar control.

Applies to

RibbonBar controls

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

ItemHandle

The handle of the category you want to set.

Item

A category item that will be set.

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 use the SetItem
function to set the category. Refer to SetItem for the difference between SetItem and SetCategory.

Examples

This example changes the value of the Text property of the category
from “MyCategory” to “MyCategory1”.

See also

InsertCategory

InsertCategoryFirst

InsertCategoryLast

DeleteCategory

GetCategory

GetCategoryByIndex

GetCategoryCount

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