If you set your form as the Top Level, you can use the code below.
>hi jan >use this all commandline in ur Exit Method
clear memory Close Database all clear events thisform.release quit
>regards >Mazahir
If not, you can issue this commands after your read events on your main Prg.
lets say (I include read events here..)
ReadeventsONKEY&& If you issue on key label commandONERROR&& if you issue on error do error handlerClosedatabaseall&& Close all open data and its tablesclearall&& clear all memory, declared dll or fllQuit
Jojo R. dela Cuesta, B.Sc. eConsultant, Programmer Dalplus Technologies http://www.dalplus.com