Reports the number of data points in the specified series in a graph.

long dwcontrol.DataCount ( string graphcontrol, string seriesname )
| Argument | Description | 
|---|---|
| dwcontrol | A reference to the DataWindow control containing the graph | 
| graphcontrol | The name of the graph in the DataWindow control | 
| seriesname | A string whose value is the name of the series for which you want the number of data points | 
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.
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:
long ll_count
ll_count = &
		dw_employees.DataCount("gr_dept", "Salary")
| Copyright © 2004. Sybase Inc. All rights reserved. |   | |