This behaviour may happen if you already set in Form.Init some custom form property to hold object reference before you issue RETURN .F. The fix is to reset all such properties to .NULL. and then fire RETURN .F.
>No, I'M NOT USING THE NOSHOW CLAUSE. AND IF I GO TO THE PROJECT MANAGER AND RUN THE FORM DIRECTLY THE SAME THING HAPPENDS.
>
>>Are you using the NOSHOW clause in your DO FORM x call?
>>
>>
>>>Is a modal form and plan to call with a do in a prg. I know that it's still in memory because if I choose the Window option in the menu, I see the name at the bottom part.
>>>
>>>>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.
Edward Pikman
Independent Consultant