Add a new Form property, I'll call it xReturnValue. Also, make the form Modal
oForm = CREATEOBJECT("MyFormClass")
oForm.Show()
* User works with the form. In the QueryUnload or the close button of the form, save the return value to the form property
xRetVal = oForm.xReturnValue
oForm.Release()
>Hi > >How can I catch the return value from a form that is created with CREATEOBJECT? > >Thanks in advance >HAL
Craig Berntson MCSD, Microsoft .Net MVP, Grape City Community Influencer