Any Dynamic array has the same scope as any other DIM in the same location. In a SUB, it goes away when the SUB is exited. If it is at Form level, it goes away when all references to the form go away, not just Unloaded. If it is at module level, it goes away when the module goes away (which may not be until end of program). If it is at Class Iinstance Level, it goes away when all references to the Instance go away. If it is Dynamic then a
ReDim arrayName(0,0)
will reduce to 1 item.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.