The form is still in memory? How did you call the form (DO FORM x, or CREATE('Form'), etc...) Is it modal or modeless?
Mark
>Thanks for your quikly answer. Return .F. works but the form is still in memory. I try thisform.release but doesn't work
>
>
>
>>Hello!
>>Return a false from the Init event:
>>RETURN .F.
>>
>>Mark
>>
>>>I want to know how to prevent to display a form that has a validation code in the init event. If the validation code fails, the form doesn't appear, otherwise goes thrue. I try nodefault and thisform.release but doesn't work.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.