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

InsertSeries – PB Docs 126 – PowerBuilder Library

InsertSeries – PB Docs 126

InsertSeries PowerScript function

Description

Inserts a series in a graph at the specified position. Existing
series in the graph are renumbered to keep the numbering sequential.

Controls

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 name of the graph in which you want
to insert a series.

seriesname

A string containing the name of the series
you want to insert. The series name must be unique within the graph.

seriesnumber

The number of the series before which
you want to insert the new series. To add the new series at the
end, specify 0.

Return Values

Integer. Returns the number of the series if it succeeds and
-1 if an error occurs. If the series named in seriesname exists
already, it returns the number of the existing series. If any argument’s
value is null, InsertSeries returns null.

Usage

Series names are unique if they have different capitalization.

Equivalent syntax

If you want to add a series to the end of the list, you can use
AddSeries instead, which requires fewer arguments.

This statement:

is equivalent to:

Examples

These statements insert a series before the series
named Income 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