Hi,
Does anyone know if there is a problem with dimensioning arrays in a subroutine?
I define all my variables in a place at the bottom of my code and I call it with a Gosub at the start of my program to initialise everything. It works fine with regular variables but, it doesn't seem to work with arrays. It keeps telling me that my arrays haven't been dimensioned, but they absolutely have, and they are all global arrays too. Also, my procedures don't seem to recognise the arrays either, again even though they are global.
There's nothing in the manual about this. It just tells you how to dimension an array, but it doesn't say where it has to be done or if there are any problems with doing it in certain places. I've checked my code about six times only to find nothing wrong, so I'm kind of at a loss as my arrays seems to be getting ignored.
I can print the value of an array offset if I'm within the subroutine, but anything outside just throws up an "Array not Dimensioned" error.
I'm genuinely stumped, so any help would be appreciated!