The form is the parent and the command button is not part of a command group.
Thanks
Simon
>>The click method of an okay button on a modal form I had the following code.
>>
>>Procedure cmdOkay.Click
>>Local lcFile,lcType...
>>
>>With This.Parent && The parent is the modal form
>> lcFile=.txtMergeFile.Value
>> lcType=.comMergeType.Value
>>EndWith
>>*
>>*Code to do the merging
>>*
>>
>>...
>>
>>ThisForm.Release
>>EndProc
>>
>>The form never released when the merging finished and the Release method was called. Obviously there was a dangling object reference somewhere. The only problem was I never refered to any objects in my code.
>>
>>However, when I changed "With This.Parent" to "With Thisform" everything worked fine. I am assuming that the "EndWith" does not clear any objects referenced
>>by the "With" command. Am I correct in my understanding? Did anyone else know this already?
>>
>>Thanks
>>Simon
>
>Are you sure that the form is the parent? (The OK button isn't a member of a command button group is it?)
Simon White
dCipher Computing