DataCount
PowerScript function
Description
Reports the number of data points in the specified series in a
graph.
Applies to
Graph controls in windows and user objects, and graphs in DataWindow
controls and DataStore objects
Syntax
1 |
controlname.DataCount ( { graphcontrol, } seriesname ) |
Argument |
Description |
---|---|
controlname |
The name of the graph in which you want the number of data |
graphcontrol (DataWindow control or DataStore only) |
(Optional) The name of the graph in the DataWindow control |
seriesname |
A string whose value is the name of the series for which |
Return value
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 2 |
long ll_count ll_count = gr_product_data.DataCount("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 2 3 |
long ll_count ll_count = & dw_employees.DataCount("gr_dept", "Salary") |
See also