Hello Greg,
>When you create an object of the form via NEWOBJECT(), and it is desired to return a value (modal form), you cannot return a value via the RETURN statement in the Unload() event (no variable to catch the value declared). In this case you would need to pass an object reference from the calling program to hold the return values. However, in the DO FORM command, you can return a value via:
>
>DO FORM DateEntry TO llReturnValue
I just use global variable or application object property to return whatever i want to return. also, you can return anything you want from the form directly if the form is modal.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer