L'operazione Array esegue operazioni sulle variabili array.

arraySet(TARGET_ARR, EXPRESSION, 1);
1 2 5 3
Tutti gli elementi
arraySetAllItems(TARGET_ARR, EXPRESSION);
1/4 2 5
1: Operazione
2: Destinazione
3: Numero di elementi
4: Tutti gli elementi
5: Sorgente
| [SetTo] | BloccoTesto'arraySetAllItems' |
Scrive le variabili, le costanti o le espressioni specificate nel blocco valori sulla variabile array di destinazione. |
| [CopyTo] | BloccoTesto'arrayCopyAllItems'
|
Scrive le variabile array specificate nel blocco variabili nella variabile array di destinazione. Quando [Tutto] è abilitato, scrive le variabili, le costanti o le espressioni specificate nel blocco valore sorgente sulla variabile array di destinazione. |
È possibile creare un oggetto Tasto e configurare qualsiasi tipo di trigger che sia associato all'operazione Array.
(Esempio 1)
Considerare un array ArrayInt con tipo dati INT con 5 elementi.
| Condizione | Oggetto (Destinazione) | Tutti gli elementi | Numero di elementi | Parametro (sorgente) | Risultato |
BloccoTesto'arraySetAllItems' |
ArrayInt | Attivato | - | 100 | ArrayInt[0]=100 ArrayInt[1]=100 ArrayInt[2]=100 ArrayInt[3]=100 ArrayInt[4]=100 |
| ArrayInt[1] | Disattivato | 3 | 100 | ArrayInt[1]=100 ArrayInt[2]=100 ArrayInt[3]=100 |

arraySetAllItems(ArrayInt, 100);

arraySet(ArrayInt[1], 100, 3);
(Esempio 2)
Considerare 2 array ArrayInt1 e ArrayInt2 con tipo dati INT con 5 elementi in ciascun array.
| Condizione | Oggetto (Destinazione) | Tutti gli elementi | Numero di elementi | Parametro (sorgente) | Risultato |
BloccoTesto'arrayCopyAllItems' |
ArrayInt1 | Attivato | - | ArrayInt2 | ArrayInt1[0]=ArrayInt2[0] ArrayInt1[1]=ArrayInt2[1] ArrayInt1[2]=ArrayInt2[2] ArrayInt1[3]=ArrayInt2[3] ArrayInt1[4]=ArrayInt2[4] |
| ArrayInt1[2] | Disattivato | 3 | ArrayInt2[0] | ArrayInt1[2]=ArrayInt2[0] ArrayInt1[3]=ArrayInt2[1] ArrayInt1[4]=ArrayInt2[2] |

arrayCopyAllItems(ArrayInt1, ArrayInt2);

arrayCopy(ArrayInt1[2], ArrayInt2[0],3);