>>I have a modeless form for displaying status in a small program where I am calling a setup procedure from within the form init. If there are problems I need to close the form but I can't figure out how. The code to call the form is:
>>
do form Jcomm name xoMainForm Linked
>>read events
>>
>>I tried returning .F. in the init but the empty form just stays there. I tried clear events in the gotfocus but same thing.
>
>How about:
>
>do form Jcomm name xoMainForm Linked
>IF NOT ISNULL(xoMainForm)
> READ EVENTS
>ENDIF
>
>
>**** Jcomm INIT
>IF SomethingBadHappened
> RETURN .f.
>ENDIF
>
Many thanks. That did the trick.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn