Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To release a form is NULL ok or need to Release()?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01537966
Message ID:
01538021
Views:
32
>Nulling the reference variable and calling the Release are functionally equivalent. However, if you have more than one variable referencing the form and you don't NULL them all the form will not close. More importantly if some code that is NOT in the form itself is nulling the reference than there is no way for the form to prepare before it is released. By following a practice of ALWAYS releasing a form by calling it's Release method you now have a consistent place, in the form itself, that the form can deal with preparing to close.

Thank you for the explanation.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform