myVar = "" Obj=CreateObject("MyClass") Obj.show *Obj.custommethod (or a button click etc) myVar = "myValue"-Pass caller ref to object and let object to change a prop on caller
* Obj.init lparameters oCaller this.rCaller = oCaller && Object custom prop to hold reference * Obj.custommethod this.rCaller.anyproperty.value = myValue Obj=CreateObject("MyClass",this) && or thisform for form ref Obj.show-Create caller form with a name. So object can use it as a reference
do form myForm name referencedForm * Obj.custommethod referencedForm.anyprop = myValue Obj=CreateObject("MyClass") Obj.showetc