DataCount

Description

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

Applies to

PowerBuilder DataWindow DataWindow control

DataWindow Web ActiveX DataWindow control

Syntax

PowerBuilder

long dwcontrol.DataCount ( string graphcontrol, string seriesname )

Web ActiveX

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

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

Example 1

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")

See also