Hi all!

From what I've read in manuals a variable declared as public in the Declarations section of a form only lives as long as this form is loaded.

However, when I declare a public string variable (say, A) in a form (say, frm), initialise A, do some operations on A and then unload frm, I still can access A from other forms through frm.A which returns the value set at initialisation.

Why is A not removed from the memory when frm is unloaded? I've tried searching the forum but couldn't find the answer.

I use VB6.

Thanks