Just release it (from memory) by issuing a THISFORM.RELEASE().
Depending on the actions you want to take, you can make it as robust as you want it (checking for unsaved data, asking the user to save or cancel etc.) but in essence a form is just an object that is in memory and is best released from memory.
Hi Weedz
I put that code in the lostfocus event and it did nothing. Where is the best place on the form to put it? What I am try to do is completely remove the form once I click on my find button on the form. My find button calls a PRG file that looks for the records I'm trying to find. Then once I find the records, the prg recalls the for with a do form statement.
So let me get this clear:
1. Do form
2. Click on find button on form
3. Prg oes some action
4. As far as I understand, the process should return to the place from where you called your prg ? Presumably the click event of your find button.
5. So once you found you data, issue a THISFORM.RELEASE()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.