meta data for this page
Differences
This shows you the differences between two versions of the page.
| automation:topics:array [2025/12/09 16:17] – created vamsan | automation:topics:array [2025/12/09 16:32] (current) – vamsan | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| {{: | {{: | ||
| + | |||
| + | The image above displays a two-dimensional array of type " | ||
| + | |||
| + | < | ||
| + | arry : Array[0..5, 0..2] of Byte; | ||
| + | </ | ||
| + | |||
| + | The assignment is displayed in the code like this: | ||
| + | |||
| + | < | ||
| + | tomb[3, 1] := 1; | ||
| + | </ | ||
| + | |||
| + | The indexing of a three-dimensional array can be illustrated as follows: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In this case, the above assignment can be defined in the program as follows: | ||
| + | |||
| + | < | ||
| + | tomb[3, 1, 0] := 1; | ||
| + | </ | ||
| + | |||
| + | The elements of the array are always homogeneous, | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In this case, I specified the type of the four-element array as " | ||
| + | |||
| + | < | ||
| + | " | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||