|
-
Feb 27th, 2007, 05:45 AM
#1
Thread Starter
New Member
Lifetime of a public form variable
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|