>> FOR lnI = lnKount TO 1 STEP -1
>> loForm = THIS.FormList.ITEM(lnI)
>> loForm.QUERYUNLOAD()
>> ENDFOR
>>ENDPROC
>
>So, what actually releases top form? QUERYUNLOAD?
Sorry, I forget that my base form class does some stuff in the QueryUnload and calls THISFORM.Release(). The code I gave you previously for finding the TLF is what releases the TLF. The only other 2 ways of closing an app is clicking the close button (which is handled by the ON SHUTDOWN), and choosing Exit under the File menu pad if you have one. Releasing the TLF should be the last thing your cleanup process does.
Mark McCasland
Midlothian, TX USA