Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>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...)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement