Thanks Fred!
Enmanuel
>
>You can do something like this:
>
>In your class, add aproperty for the return val, say .Retval.
>
>Instead of closing your form class, hide your form, and let the calling program retrieve the property and close the form.
>
>In your class,
>
>
thisform.Hide()
>
>And in your calling program,
>
>
thisform.Calendario.Show()
>dRetDate = thisform.Calendario.RetVal
>thisform.Calendario.Release()
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain