Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REDIM takes more resources than DIM?
#21
@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)
Reply


Messages In This Thread
REDIM takes more resources than DIM? - by bplus - 07-17-2024, 12:21 AM
RE: REDIM takes more resources than DIM? - by Pete - 07-17-2024, 08:11 PM



Users browsing this thread: 3 Guest(s)