Sets a value into all the elements of the series. Optional Start and End element parameters are available to control which elements in the series will be assigned the replacement seed-Value. When the Start and End elements index numbers are not used the entire series will be contain the replacement seed-value.
This function makes clearing the entire series value of its previous values a fast and simple process.
Syntax: |
---|
SetSeriesValues( seriesName, seedValue, [Start-Element-Num], [End-Element-Num] ) |
Parameter: |
Description: |
---|---|
seriesName |
The name of series to be changed. |
seedValue |
The replacement value to use for the series, or for the range of elements designated between the Start and End element number range. |
[Start-Element-Num] |
The earliest, or lowest series index value from which seed-value will begin replacing the values in the series. |
[End-Element-Num] |
The latest, or highest series index value at which the seed-value replacements will stop being replaced. |
Example: |
---|
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
Returns: |
Series Elements with Values: Series Element Element Value -------------- ------------- TestSeries[1] = 1.000000000 TestSeries[2] = 2.000000000 TestSeries[3] = 3.000000000 TestSeries[4] = 4.000000000 TestSeries[5] = 5.000000000
Series Elements with New Values: Series Element Element Value -------------- ------------- TestSeries[1] = 0.000000000 TestSeries[2] = 0.000000000 TestSeries[3] = 0.000000000 TestSeries[4] = 0.000000000 TestSeries[5] = 0.000000000 |
Links: |
---|
See Also: |
Edit Time: 9/18/2020 11:35:24 AM |
Topic ID#: 557 |