This is not An Array but you are using it as One

From Xojo Documentation

Error message

You passed an object to a method or function that expects an array but did not get one. It also occurs if you are trying to assign a value to an element of an alleged array but it is not an array.


Examples

Var aInts(4) as Integer
Var f as FolderItem
f.ResizeTo(10) //not an array
Var a as String
a(1)="Ted" //not an array


See Also

Var statement; Arrays.ResizeTo operator.