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

CategoryName – PB Docs 2021 – PowerBuilder Library

CategoryName – PB Docs 2021

CategoryName

PowerScript function

Description

Obtains the category name associated with the specified category
number.

Applies to

Graph controls in windows and user objects, and graphs in DataWindow
controls .

Syntax

Argument

Description

controlname

The name of the graph in which you want to find the name
of a specific category, or the name of the DataWindow control
containing the graph.

graphcontrol (DataWindow control only) (optional)

A string whose value is the name of the graph in the
DataWindow for which you want the name of a specific category.
Graphcontrol is required if controlname is a DataWindow
control.

categorynumber

The number of the category for which you want the
name.

Return value

String.

Returns the name of categorynumber in controlname. If an error
occurs, it returns the empty string (“”). If any argument’s value is null,
CategoryName returns null.

Usage

Categories are numbered consecutively, from 1 to the value returned
by CategoryCount. When you delete a category, the categories are
renumbered to keep the numbering consecutive. You can use CategoryName to
find out the named category associated with a category number.

Examples

These statements obtain the name of category 5 in the graph
gr_product_data:

These statements obtain the name of category 5 in the graph
gr_revenues in the DataWindow control dw_findata:

See also

AddCategory

SeriesName


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