Hilmar,
Good idea. I think this may do it, assuming I use a cmdButton as the calling object.
Had another suggestion to use a parameterized object from Sergey on same thread.
I guess there isn't a direct analogue from the "DO FORM... to lcReturnValue" syntax to something like "ofrmMyFormObject.Show() to lcReturnValue".
Thanks for your time on this today.
-- Larry
>OK; I'm not sure this is the easiest way, but I believe you can achieve your purpose as follows:
>
>
Let's first suppose you call your custom object from another form. Call it with ThisForm as parameter.
>In the calendar form, fetch the calling form in Form.Init(), and save it into a form property. Let's say this property is ThisForm.oCallingObject.
>When closing your calendar form, save a value to ThisForm.oCallingObject.dSelectedDate.
>Of course, the calling form must have this property.
>You can also pass any other object as a parameter. Just make sure it has the required property.
>
>HTH, Hilmar.
Larry Tucker