Each element of an array must have its value assigned individually. This error has the following causes and solutions:
Causes:
- You tried to assign a single value to an array variable without specifying the element to which the value should be assigned. For example:
- You tried to assign a whole array to another array. For example:
Solution:
- Assign each element in the array individually:
- To assign one array to another, make sure that the array on the left side of the assignment is resizable and the types of the array match. You can place a whole array in a Variant, resulting in a single variant variable containing the whole array: