Sounds like you are trying to use an array dimed in main code in a private sub then you have to say Dim Shared so subs can see it too or pass it in parameters list when calling subroutine.
10 is the allowed maximum for an array not Dimensioned.
Also Erase works for static Dim arrays not for Dynamic ReDim arrays.
That wacked me out when I first started with QB64, why won't a Dim array ReDim? (because it is static because I used Dim I'm stuck with one size)
or how do your clear a Dim array? (ERASE !!!)
10 is the allowed maximum for an array not Dimensioned.
Also Erase works for static Dim arrays not for Dynamic ReDim arrays.
That wacked me out when I first started with QB64, why won't a Dim array ReDim? (because it is static because I used Dim I'm stuck with one size)
or how do your clear a Dim array? (ERASE !!!)
b = b + ...