Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to release a form
Message
 
 
To
20/09/2009 11:51:49
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01425336
Message ID:
01425342
Views:
58
>I have a form and in one of the methods of this form I want to release this form (based on some condition). So I have code
>
>thisform.release()
>
>
>But the form is not released. The program goes to the next line after the thisform.release(). How do I release a form in a middle of any method of the form?

>
>Instead if trying to release the form in the middle of the method, set a flag instead. Then, if the flag is set at the end of the method, release the form there.

I just tried it. For testing, I replaced the entire code of the method with just two lines:
thisform.release()
return
But the program returns to the calling method.

Thank you for your suggestion.
"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