Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DeleteSeries – PB Docs 2019 – PowerBuilder Library

DeleteSeries – PB Docs 2019

DeleteSeries

PowerScript function

Description

Deletes a series and its data values from a graph.

Applies to

Graph controls in windows and user objects. Does not apply to graphs
within DataWindow objects (because their data comes directly from the
DataWindow).

Syntax

Argument

Description

controlname

The graph in which you want to delete a series

seriesname

A string whose value is the name of the series you want to
delete from controlname

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, DeleteSeries returns null.

Usage

The series in a graph are numbered consecutively, in the order they
were added to the graph. When a series is deleted, the remaining series
are renumbered.

Examples

This script for the SelectionChanged event of a DropDownListBox
assumes that the list box lists the series in the graph gr_data. When the
user chooses an item, DeleteSeries deletes the series from the graph and
DeleteItem deletes the name from the list box:

See also

AddSeries

DeleteCategory

DeleteData

FindSeries


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