Yes. You can't have local Dim arrays, unfortunately. However, you can re-Dim them at any time, so you can sort-of free very large arrays when done by resizing them to zero (note: re-Dim-ing an array will lose its contents even if you resize it to something other than zero).
If you really need local arrays, there's the "Blitz array" option which is declared the same way as a variable but with square brackets after the name containing the size of the single dimension. These can have local, global or field scope (and can be passed in to functions, which is actually useful in a lot of ways) but you can't resize them; they have to be a compile-time constant size.
|