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:

SetSymbolArrayIdx 1:

Sample result:

%s%TempSchedule::fbWeekTimers[4]::aMembers[0]%/s%

Parameter

Name

Type

Description

Symbol

TcHmi.Symbol

Symbol with at least one array at index [0]

Idx

number

The new index to be inserted into the array instead of [0]

TargetArray

number

The xth array, starting from the left, that is to be changed.

Return value

Type

Description

string

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