Reports the number of data points in the specified series in a graph.
PowerBuilder DataWindow DataWindow control
DataWindow Web ActiveX DataWindow control
long dwcontrol.DataCount ( string graphcontrol, string seriesname )
number 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")