DeleteData PowerScript function
Description
Deletes a data point from a series of a graph. The remaining
data points in the series are shifted left to fill the data point’s
category.
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
|
1 |
<span>controlname</span>.<span>DeleteData</span> ( <span>seriesnumber</span>, <span>datapointnumber</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph in which you want |
|
seriesnumber |
The number of the series containing the |
|
datapointnumber |
The number of the data point containing |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If any argument’s value is null, DeleteData returns null.
Examples
These statements delete the data at data point 7
in the series named Costs in the graph gr_product_data:
|
1 |
integer SeriesNbr |
|
1 |
// Get the number of the series. |
|
1 |
SeriesNbr = gr_product_data.FindSeries("Costs") |
|
1 |
gr_product_data.<span>DeleteData</span>(SeriesNbr, 7) |