>>I have a form class that does most of my seek, look, add and edit work. I am calling a form based on it but with a parameter of ADD to only add one record. I set a flag in the init and then after the use has saved or canceled I check the flag do thisform.release(). The release() is getting hit but it does nothing. The code continues to run as though it was not there. Is this because I am trying to exit in the middle of a method?
>>
>>Thanks in advance.
>>John.
>
>A coupla things to check:
>
>1. Are you executing a NODEFAULT while in the release method of the form. If so, the default behavior of releasing the form will not occur
>
>2. Try putting the following at the top of your release() method:
> RELEASE this
>
>3. Do you need to call up the hierarchy to code that knows how to release object references on your form that are holding the form from destroying?
Thanks to all who replied.
Here is the solution. I found that the command ThisForm.Release() will only work if it is the last line in a method or series of method calls - in most places. By the way. I don't think I said that I am using model forms only.
John.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn