* Caller was launched with a name clause do form myForm name "frmCaller" linked * Some code somewhere local dlgFind do form findcust.scx name dlgFind linked * with thithisform.txtCustomer.Value * Modal form releasing - ie: a button click if thisform.m_nCustId <> -1 ? "The customer id is " + Str(thisform.m_nCustId) ? "The customer name is "+thisform.m_sCustName frmCaller.txtCustomer.Value = thisform.m_sCustName * and refresh the caller frmCaller.refresh endifPassing form ref is nearly the same :
local dlgFind do form findcust.scx name dlgFind linked with thisform * Modal form init lparameters oCaller this.oCaller = oCaller && Save it to a custom form prop * Modal form releasing - ie: a button click if thisform.m_nCustId <> -1 ? "The customer id is " + Str(thisform.m_nCustId) ? "The customer name is "+thisform.m_sCustName thisform.oCaller.txtCustomer.Value = thisform.m_sCustName * and refresh the caller thisform.oCaller.refresh endifStill many other ways but this two are effective enough and very similar to logic of toolbars.