Used this function to access a value in a series that is passed to Script-Object function.
Access to a series is defined as follows:
•Auto-Indexed properties or Auto-Index series are offset based.
•Non-Auto-indexed series are manual direct index based.
Access to any series to be passed requires the use of the AsSeries() function.
Script-Object parameters are numbered by their sequence location in the left-to-right order in how they appear in the script.Execute() call statement.
See Custom Parameters for more details.
Syntax: |
---|
y = script.GetSeriesValue( SeriesParameterNumber, offsetOrIndex ) |
Parameter: |
Description: |
---|---|
SeriesParameterNumber |
Series parameter sequence location number. |
offsetOrIndex |
Element offset for use with Auto-Index series, or a series element index for use with Manually index series. |
Example: |
---|
' ---------------------------------------------- ' ---------------------------------------------- Note: Earlier version of GetSeriesValue() required a "-1" added to the users offset to get the correct series element. This next example shows how to adjust the offset: |
Results: |
---|
Value in each accessed element of the series. |
Links: |
---|
Script, Script Functions, Script Properties, AsSeries(), SetReturnValue, Execute, SetSeriesSize, ParameterList, seriesParameterCount |
See Also: |
|
Edit Time: 11/7/2020 3:53:30 PM |
Topic ID#: 359 |