>There is an issue of Garbage Collection when it comes to publicly declared variables. VFP handles this well enough but I don't know yet VB. How to release a variable in VB?
A public variable declared in a form (having a simple datatype (integer, string, date, ...)) is deleted from memory when the form is removed from memory.
If your public variable is declared as an object, you can set it to nothing.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com