Dynamic array variable expected

The first argument to the setLength or length function is not a dynamic array variable. Example:

int a
setLength(a, 10)  ; Error!

You must pass a dynamic array variable to these functions:

int a[]
setLength(a, 10)  ; OK

See Also
Errors