function + array problem

Blitz3D Forums/Blitz3D Beginners Area/function + array problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm trying to redim an array inside a function, and it's saying "Duplicate identifier"

If the array isn't declared outside in the main program, I get "Array not found in main program"

Weird.

Edit: got it figured out... when you redim, number of dimensions must be the same.