CategoryCount PowerScript function
Description
Counts the number of categories on the category axis of a
graph.
Controls
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
|
1 |
<span>controlname</span>.<span>CategoryCount</span> ( { <span>graphcontrol</span> <span></span>} ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph for which you want |
|
graphcontrol (DataWindow control |
A string whose value is the name of the |
Return Values
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 |
integer li_count |
|
1 |
li_count = & |
|
1 |
dw_findata.<span>CategoryCount</span>("gr_revenues") |
These statements get the number of categories in
the graph gr_product_data:
|
1 |
integer li_count |
|
1 |
li_count = gr_product_data.<span>CategoryCount</span>() |