@aurel
DIM arr(100)
REDIM arr(1000)
That would cause a duplicate definition error.
Edit: To be clearer, you can do...
REDIM a(100)
REDIM a(1000)
or...
ReDim a(100)
Erase a
Dim a(1000)
but you cannot redefine a static array, even if you try to erase it...
Dim a(100)
Erase a <------ WON'T WORK.
Dim a(1000)
DIM arr(100)
REDIM arr(1000)
That would cause a duplicate definition error.
Edit: To be clearer, you can do...
REDIM a(100)
REDIM a(1000)
or...
ReDim a(100)
Erase a
Dim a(1000)
but you cannot redefine a static array, even if you try to erase it...
Dim a(100)
Erase a <------ WON'T WORK.
Dim a(1000)