*!* Add a custom property to the form for the return value oMyobject=CREATEOBJECT('myForm') *!* In the myForm.Unload do this.hide instead of this.release() oMyObject.Show(1) *!* Check the return property in the form lcReturnValue = oMyObject.ReturnValue oMyObject.Release() IF lcReturnValue = "whatever" *!* et cetera. ENDIFYou can either have the control bound to the form's custom property, or assign it in the unload().