Clipboard  FindCategory

Chapter 10: Methods for Graphs in the DataWindow Control

DataCount

Description

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

Syntax

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

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





Copyright © 2004. Sybase Inc. All rights reserved. FindCategory

View this book as PDF