CategoryCount
PowerScript function
Description
Counts the number of categories on the category axis of a
graph.
Applies to
Graph controls in windows and user objects, and graphs in DataWindow
controls
Syntax
|
1 |
controlname.CategoryCount ( { graphcontrol } ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph for which you want the number of |
|
graphcontrol (DataWindow control only) (optional) |
A string whose value is the name of the graph in the |
Return value
Integer.
Returns the count if it succeeds and -1 if an error occurs. If any
argument’s value is null, CategoryCount returns null.
Examples
These statements get the number of categories in the graph
gr_revenues in the DataWindow control dw_findata:
|
1 2 3 |
integer li_count li_count = & dw_findata.CategoryCount("gr_revenues") |
These statements get the number of categories in the graph
gr_product_data:
|
1 2 |
integer li_count li_count = gr_product_data.CategoryCount() |
See also