Informix Error -16360
-16360 Cannot assign values to arrays; Assignments must be to array elements.
A LET command can assign a value to a simple variable or to a single element of an array that a subscript in brackets designates. Enter help let to see an example.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-16360 fires when a LET command targets a whole array instead of a bracket-subscripted
element — per the official guidance.
- A
LETcommand assigning to a whole array rather than a single subscripted element, per the official guidance — the direct, only cause.
Solutions / Resolution
- Assign to a specific array element using a bracket subscript, per the official guidance.
- Enter
help letfor an example, per the official guidance.
Examples
Assigning to a whole array
> LET myarr = 5
Corrected
> LET myarr[1] = 5
Diagnostic Checks
- Check the
LETcommand's target for a whole-array reference, and qualify it down to a specific bracket-subscripted element.
Related Errors / Related Topics
- -16359 — "Cannot assign values to records; Assignments must be to record members." The same whole-object-assignment restriction, applied to records rather than arrays.
A LET command targets a whole array — assign to a specific bracket-subscripted element
instead.