>Hi Cetin,
>
>That's good to know! I faced this once and I ended creating a form based on my class to use the DO FORM withouth looking further into this.
>
>This behaviour of the Modal state is logic if you think about it, when hidden the modal state is no more. However, it is not very well documented in the Help files. The only thing that can help you in discovering this is the description of the nStyle parameters of the Show method.
>
>Regards,
>Sylvain
You're right :) According to documentation you're directed towards modal form's unload event to get back a value. I first discovered the hide() workaround when unintentionally I had trouble releasing a form. Since than I'm using it to get my value(s) back too :) So now I don't care if it's a createobject() one or do form .. name oFrm one. In both cases I hide() rather than releasing it, get my values directly from properties (even don't preserve extra form properties like date ranges, login name etc) then release it using the reference on hand. ie:
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