Hi Nick,
>on shutdown clear
This should be ON SHUTDOWN CLEAR EVENTS
>on shutdown clear event
>thisform.release()
And here you need a simple CLEAR EVENTS.
By default, VFP doesn't know what to do when a user clicks the "X" button. YOu have to explicitely tell VFP that you want to shut down the application in that case. ON SHUTDOWN lets you capture that request, CLEAR EVENTS is the reaction. It cancels the READ EVENTS and continues the execution of your main program.
Christof
--
Christof