Hi Mark,
If the "op" object was created in the calling program, then the "op" object will be "seen" there after the form call and you don't have to return anything from the form. There are exceptions to this: If the calling method is part of a top-level form calling another non-modal form, code will continue to execute in the calling method and there's hell to pay.
>I've seen this discussed here before, should have paid more attention. I need to return multiple values back from a (modal) form and want to use the "create an object, pass it to the form, populate it with the values, and pass it back" idea to get the values. However, it isn't working for me. I have an object created and try to send it to a form parameter like in the following code, but I just get errors, upon errors...
>
>oP = CREATEOBJECT('myparams')
>DO myform WITH oP ...
>
>First question is how to call the form, like above with a "TO" clause? If so, "TO" what? Another object variable? I've tried to create a form property (oHold) to hold the object reference, populate it's properties with the values I need before the form unload and do a "RETURN oHold" but no luck. Anyone care to shed some light on this?!
>
>Thanks
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05