Chapter 10: Methods for Graphs in the DataWindow Control  CategoryName

Chapter 10: Methods for Graphs in the DataWindow Control

CategoryCount

Description

Counts the number of categories on the category axis of a graph.

Syntax

integer dwcontrol.CategoryCount ( string graphcontrol  )

Argument

Description

dwcontrol

A reference to a DataWindow control containing the graph

graphcontrol

A string whose value is the name of the graph in the DataWindow for which you want the number of categories

Returns

Returns the count if it succeeds and -1 if an error occurs. If any argument’s value is NULL, CategoryCount returns NULL.

Examples

Example 1

These statements get the number of categories in the graph gr_revenues in the DataWindow control dw_findata:

integer li_count

li_count = &

		dw_findata.CategoryCount("gr_revenues")

See also





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

View this book as PDF