Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01253375
Message ID:
01253548
Views:
18
>Why are you issuing RELEASE ALL and CLEAR EVENT? Is your app only a single form? Is the form modal? Normally, if you want to prevent a form from launching based on conditions in an app, you can check the conditions and return .f. from the form init to prevent the form from launching. However, the app will contain to run without a clear event. It depends on what you want to do specifically.
>
>
>>>From the form init, just RETURN .F.
>>
>>Tracy do you mean like this?
>>
>>
>>*at myform init event
>>IF DATE()>CTOD("27/08/2007")
>> MESSAGEBOX("wwwwwww")
>> thisform.Release
>> RELEASE ALL
>> CLEAR EVENT
>> RETURN .F.
>>endif


Hi Tracy:

I can't speak for Mohammed, but now I'm confused...

I jumped in here because I thought you might have answered a problem I have which is that sometimes in my simplest apps (a PRG calls a FORM and then follows it with a READ EVENTS and some cleanup and then exits, sometimes it leaves the form window open (in development mode -- of course it closes in compiled mode)... and I don't know why, since I CLEAR EVENT and thisform.release as the last two things under the "click" method of an "exit" button...

Ah... oh... hmmm... maybe I need to put those somewhere other than click?

Cheers,

Kevin

PS (Sorry if I hijacked this thread...)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform