Syntax 2 For graphs – PB Docs 126

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

Argument

Description

controlname

The name of the graph object in which
you want to delete all the data values or all series and all data
values

graphresettype

A value of the grResetType enumerated
datatype specifying whether you want to delete only data values
or all series and all data values:

  • All! – Delete all series, categories, and data in
    controlname

  • Category! – Delete categories and data
    in controlname

  • Data! – Delete data in controlname

  • Series! – Delete the series and data in controlname

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:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x