Counts the number of series in a graph.
PowerBuilder DataWindow DataWindow control
DataWindow Web ActiveX DataWindow control
integer dwcontrol.SeriesCount ( string graphcontrol )
number dwcontrol.SeriesCount ( string graphcontrol )
Argument  | 
Description  | 
|---|---|
dwcontrol  | 
A reference to the DataWindow control containing the graph  | 
graphcontrol  | 
A string whose value is the name of the graph in the DataWindow control  | 
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.
PowerBuilder These statements store in the variable li_series_count the number of series in the graph gr_computers in the DataWindow control dw_equipment:
integer li_series_count
li_series_count = &
		dw_equipment.SeriesCount("gr_computers")