Syntax 2 For graphs
Description
Deletes the data, the categories, or the series from a graph.
Controls
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 |
<span>controlname</span>.<span>Reset</span> ( <span>graphresettype</span> ) |
Argument |
Description |
---|---|
controlname |
The name of the graph object in which |
graphresettype |
A value of the grResetType enumerated
|
Return Values
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.<span>Reset</span>(Series!) |