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
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"