The above example, is an example of a fixed size array in which you specified the size of the array when declared:
MyArray Array[4] String
Resizeable Arrays
With a resizeable array, you can set an initial size of the array and grow it as needed:
var
MyArray Array[] String ;Resizeable array.
i LongInt
endVar
MyArray.setSize(3) ;Set initial size.
MyArray[1] = "Mike"
MyArray[2] = "Lisa"
MyArray[3] = "Felicia"
MyArray.setSize(4) ;Reset size (truncates if you set smaller.)
MyArray[4] = "Nathan"
MyArray.Grow(1) ;Add to the array with grow.
MyArray[5] = "Ingo"
if MyArray.size() > 0 then
for i from 1 to MyArray.size()
msgInfo("", MyArray[i])
endFor
endIf