SetSymbolArrayIdx
function SetSymbolArrayIdx(Symbol: TcHmi.Symbol, Idx: number, TargetArray: number): void
The function SetSymbolArrayIdx changes the addressed index of an array in a symbol. A distinction can be made between several arrays in one symbol. The prerequisite is the transfer of the arrays with the index [0].
Sample call:

Sample result:
%s%TempSchedule::fbWeekTimers[4]::aMembers[0]%/s%
Parameter
Name | Type | Description |
---|---|---|
Symbol | Symbol with at least one array at index [0] | |
Idx | The new index to be inserted into the array instead of [0] | |
TargetArray | The xth array, starting from the left, that is to be changed. |
Return value
Type | Description |
---|---|
A symbol expression with the replaced index. |
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Functions
Available: from version 12.8.0
Usage: TC3 Plastic Application HMI projects