>I need to return a value from a form object. The form is a class in Library and is instantiated via CreateObject or NewObject. I use the Show(1) method to activate the form and make it modal. Is there a way to return a value from the form when it is released? Or, MUST the form be an .SCX and instantiated via DO FORM ... TO ... ?
>
>Thank You,
>Alan
Assign the value to be returned to a property,
and then in the calling function read this property.
eg.
this.retVal= m.retVal
oFrm= createobject("MyForm")
oFrm.SHOW(1)
retVal= oFrm.retVal