SeriesCount
PowerScript function
Description
Counts the number of series in a graph.
Applies to
Graph controls in windows and user objects, and graphs in DataWindow
controls
Syntax
|
1 |
controlname.SeriesCount ( { 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 number of series in the graph if it succeeds and -1 if
an error occurs. If any argument’s value is null, SeriesCount returns
null.
Examples
These statements store in the variable li_series_count the number of
series in the graph gr_product_data:
|
1 2 |
integer li_series_count li_series_count = gr_product_data.SeriesCount() |
These statements store in the variable li_series_count the number of
series in the graph gr_computers in the DataWindow control
dw_equipment:
|
1 2 3 |
integer li_series_count li_series_count = & dw_equipment.SeriesCount("gr_computers") |
See also