>>* Case 1 >>*formA >>do form formB with thisform && Just pass thisform ref to formB >>... >>* FormA is clicked or called from formB - formB still open >>* Want to click or change a value in formB - there is no reference to formB >> >>* Case 2 >>*formA >>do form formB with thisform name "formBReferenced" && Pass thisform ref to formB and also have a reference to formB >>... >>* FormA is clicked or called from formB - formB still open >>formBReferenced.text3.value = "Newvalue" && We have a ref to formB now >>formBReferenced.cmdDummy.click >>... >>do form formC && Another form is called >>*FormC >>formBReferenced.text3.value = "FormC changed this" && Even another form has a ref to formB >> >>>>Cetin
* FormA calling do form formB with thisform && Method 1 - form reference passed as a parm refFormA = thisform do form formB && Method 2 - paramB object var created * In method 2- formB any PEM could reference formA until refFormA is released * No parameters in init for that * formB.list1.KeyPress refFormA.textbox.value = xxx * In method 1 - thisform passed to init of formB as ref * formB.init parameters oFormCaller * oFormCaller is local to init method. To make it visible to all form * one thing you can do is to assign it to a custom form property * Suppose formB has a custom prop. oCaller this.oCaller = oFormCaller * formB.list1.KeyPress thisform.oCaller.textbox.value = xxxCetin