>In the init of a modal form, I am storing a reference to the callng form in ThisForm.oCallingForm. When I exit the modal form, I set the ThisFrom.uRetval and Hide the form. I am running into a situation where the datasession is not releasing and it seems ThisForm.oCallingForm is creating a dangling object reference.
>
>If in the Init of the modal form I create a PUBLIC variable called poCallingForm and store a reference to the calling form, I can RELEASE poCallingForm on exit of the modal form and everything works great.
>
>My question is, how do you RELEASE ThisForm.oCallingForm? I tried RELEASE ThisForm.oCallingForm, but VFP says it has to be a varaible or an array. Any help is apprecaited.
>
>Kind Regards,
>
>Mat
***Form.Destory event
ThisForm.oCallingForm=.Null.
Edward Pikman
Independent Consultant