I tried your first suggestion, but still nothing, the form closes, but the READ EVENTS is not cleared. It does not make sense. As to the second suggestion, it never makes it to the command after the READ EVENTS since the read is not being cleared.
Thanks for the help!
>In the click() of the close button, put the commands in this order:
>
>CLEAR EVENTS
>ThisForm.Release()
>
>-or-
>
>Have a CLEAR ALL in the main program right after READ EVENTS
>
>
>>I have a form with a close button. Under the click method is:
>>thisform.release
>>
>>and in the destroy event I have a CLEAR EVENTS
>>
>>which should return control back the the main (calling program) and exit the program. But it only closes the form but for some reason does not clear the READ EVENTS and therefore does not close my program. The form is CLOSEABLE but that does not work either.
>>
>>Any ideas? Thanks! Marvin