>How can I release memory? Both for regular variables and for arrays? I found the "erase" command, but it will just reset the values of my array and not release the memory since they're not dynamic. And that's not what I'm needing.
You simply can't do that!
VB have an automatic garbage collector for variables. (Almost) As soon as a variable get out of scope, it's pointer is released.
If you declare OBJECT variables (Dim x as Object or Word.Application and the like), you can release them using "Set X = Nothing".
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com