DataCount PowerScript function
Description
Reports the number of data points in the specified series
in a graph.
Controls
Graph controls in windows and user objects, and graphs in
DataWindow controls and DataStore objects
Syntax
|
1 |
<span>controlname</span>.<span>DataCount</span> ( { <span>graphcontrol</span>, } <span>seriesname</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph in which you want |
|
graphcontrol (DataWindow control |
(Optional) The name of the graph in the |
|
seriesname |
A string whose value is the name of the |
Return Values
Long. Returns the number of data points
in the specified series if it succeeds and -1 if an error occurs.
If any argument’s value is null, DataCount returns null.
Examples
These statements store in ll_count the
number of data points in the series named Costs in the graph gr_product_data:
|
1 |
long ll_count |
|
1 |
ll_count = gr_product_data.<span>DataCount</span>("Costs") |
These statements store in ll_count the
number of data points in the series named Salary in the graph gr_dept in
the DataWindow control dw_employees:
|
1 |
long ll_count |
|
1 |
ll_count = & |
|
1 |
dw_employees.<span>DataCount</span>("gr_dept", "Salary") |