Back to Adaptive Vision Studio website
You are here: Start » Filter Reference » Array Basics » SetArrayElement
Sets an element of an array to a new value.
| Name | Type | Range | Description | |
|---|---|---|---|---|
| ioArray | <T>Array | |||
![]() |
inIndex | Integer | 0 - ![]() |
Index within the array |
![]() |
inInverse | Bool | Reversed order in the array | |
![]() |
inNewValue | <T> | Value to be set | |
The type of this filter is defined using the type variable T which represents any valid type. Read more.
Examples
![]() |
![]() |
|
inArray = {1,4,3,2,5} inIndex = 3 inNewValue = 6 |
outArray = {1,4,3,6,5} |
Errors
This filter can throw an exception to report error. Read how to deal with errors here: Error Handling
| Error type | Description |
|---|---|
| DomainError | Index out of range in SetArrayElement. |
Complexity Level
This filter is available on Basic Complexity Level.



