Syntax 2: For graphs
Description
Deletes the data, the categories, or the series from a
graph.
Applies to
Graph controls in windows and user objects and graphs within a
DataWindow object with an external data source.
Does not apply to other graphs within DataWindow objects because
their data comes directly from the DataWindow.
Syntax
|
1 |
controlname.Reset ( graphresettype ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph object in which you want to delete |
|
graphresettype |
A value of the grResetType enumerated datatype
|
Return value
Integer. Returns 1 if it succeeds and -1 if an error occurs. If
any argument’s value is null, Reset returns null. The return value is
usually not used.
Usage
Use Reset to clear the data in a graph before you add new
data.
Examples
This statement deletes the series and data, but leaves the
categories, in the graph gr_product_data:
|
1 |
gr_product_data.Reset(Series!) |
See also