>Hi ,
> Now ,I have two form named mainform and replace.
> When press buttom replace in mainform ,it will call form replace .
> In the form replace ,the user can enter the text for the replace process .
> Here is the problem :
> I wanna replace the context of editbox in mainform ,but I really doubt how can I pass though the var. from form replace to form mainform .
>
Pass an object reference (thisform) into the replace form, providing a reference to the main form. Save it in a form property. When you want to update the control on the main form, reference it using the saved reference:
eg:
Create a property of form replace called oMainForm
In the Init of Replace:
LPARAMETERS toParentObject
this.oMainForm = toParentObject
when you want to update the control on the main form:
thisform.oMainform.edit2.value =
whatever you want it to be> I try to use _screen.mainform.edit2.value ,but it said there is error with that .
>
> Do you have any idea ?
> Thanx in advise !
>JK