I prefer a separate method for updating the values, which prevents any object references that keep the forms dependent on each other.
Create a method in FormB that you call after instantiating FormB:
DoUpdateValues()
LPARAMETERS toFormA
THIS.txt.Value = toFormA.txt.Value
When calling FormA call this method and pass the form to the method:
DO FormB NAME loFormB
loFormB.DoUpdateValues(THIS)
>Hi,
>I have a form to call another form, let say Form A calling Form B,
>I want to assign the textbox control value in Form B which is value of the textbox control from Form A.
>
>For example:
>Form A -> thisform.txtclientcode.value = "ABC"
>
>Form B -> thisform.txtclientcode.value = Form A.txtclientcode.value
>
>I need to passing about 20 values from Form A to Form B, using Array or other method ?
>Which is better method ?
>
>Please advise.
>Thanks.
>Derek Yim
Christian Isberner
Software Consultant