Michael,
The reason it's failing on you, is because when Unload() fires all of the contained controls have already been destroyed. So the easiest way to do this is to use a custom Form property that the control is bound to. The Form property is still returnable in the Unload event.
>I have a class object that is a form and I want to return a value to ldDate. Is there a way I can do this. I tried returning the value from the UNLOAD event but it didn't work. Thanks in advance.
>
>
>set classlib to CalLib
>oCalendar = CREATEOBJECT('calendar')
>ldDate = oCalendar.Show()