Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
Mike, Try putting code in the QueryUnload event to hide the form and return .f. from QueryUnload, get the values that you want, then release the form.
Elmer
>Hi Cetin,
>
>I've used you code below and it works well except for the case when I close the modal form using the "X" button in the upper right corner of the window. When I do this, oFrm is somehow set to .null. and I can't get to any of its properties.
>
>Any idea why this is so?
>
>Regards,
>
>Mike
>
>>
>>oFrm = createobject('myForm')
>>oFrm.Show(1) && I might want to use a modeless as modal
>>ldStart = oFrm.txtStartDate.Value && Code continues here when form.hide()s
>>oFrm.release()
>>release oFrm
>>
>>do form myForm name oFrm linked && Call a modal form
>>ldStart = oFrm.txtStartDate.Value && Code continues here when form.hide()s
>>oFrm.release()
>>release oFrm
>>
>>Cetin
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only