Why are you using a two-dimensional array with the first dimension size only 1? Is that only for the example?
Possible workaround: the parameters are dynamic arrays too. You can append items to it beyond its current size.
si = vardim2(a2) if n > si then for i = si + 1 to n a2[i] = -1 next i parameters a2 = a2 endif
Library Platform, Software Engineer