>This is what I did to get CREATEOBJECT to return a value from a modal form
>
> oprntprev = CREATEOBJECT('Print_Preview',tnDest)
> oprntprev.show(1)
> lnPrint = oprntprev.ReturnValr
>
>Instead of Releasing the modal form, I issue a Thisform.Hide when the user >exits. Control returns from the modal form, but I still have access to the >objects properties(ReturnVal). There is probably a better way to do this, but >this did work for me.
David Frankenbach has an example of returning values from a form at
http://www.geocities.com/ResearchTriangle/9834/qfrm001.htmWhile the example uses DO FORM to call the form, you can also pass the object he uses in CREATEOBJECT as a parameter. He also shows how to return multiple values. His example makes it possible to release the form and still have access to the values.
Ryan Hirschey