Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to release a form
Message
 
 
To
21/09/2009 08:26:47
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01425336
Message ID:
01425428
Views:
51
>>Here is conceptually what the form does. When the form is opened it processes some data received from an outside source; one record at a time. When all "new" data has been processed, the user gets the message "No More Data to Process" and when he/she clicks on Ok button, the form is released. Therefore, there is a need to release the form after the messagebox. So why is it "so brutal"?
>>
>>>It cannot reales at that point because code is still executes in its method. Add RETURN to exit the method.
>>>I'm curious what kind of form is it that you terminate is so brutally?
>
>Dmitry,
>
>What I do in that case is call the methods from the form's init. After that, I return FALSE from the form's init.
>So, I do not have to release the form, since it wasn't "created" ...

I think you are simplifying this. The form has many features and therefore the INIT method of the form has to be "finished" at some point and the form must be "created." Then the "control" goes to various UI controls of the form (textboxes, command buttons, etc.). So the form has to be released somewhere after certain data has been processed.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform