Difference between revisions of "Error Messages/40461"
Line 24: | Line 24: | ||
* [[Array]] | * [[Array]] | ||
* [[Slice]] | * [[Slice]] | ||
+ | * [[Slice assignment]] | ||
* [[Assignment Operator :=]] | * [[Assignment Operator :=]] | ||
* [[Local Variables]] | * [[Local Variables]] |
Revision as of 19:48, 29 March 2016
Error message examples
Assignment to slice 4 along IndexA is out-of-range.
Cause
You tried to assign to a slice of a local variable that does not exist.
The following code would trigger this error.
Index IndexA := 1..3; Var LocalA := Array(IndexA, [1, 4, 9]); Slice(LocalA, IndexA, 4) := 16; ...
Remedies
Correct the assignment so that you are assigning to a slice in the index range.
See Also
Comments
Enable comment auto-refresher