>Nadya,
>
>In the form A cmdButton click, I add the following code:
>
>oFormB = createObject ("classFormB")
>thisform.oFormB.show
>
>thisform.formBTextValue.value =oFormB.text1.value
>
>When the cmdButton is clicked, the form oFormB just flicked and did not display for me to edit the value in text1 text box.
>
>
>Mun
Hi Mun,
Sorry, had a meeting, so was not able to answer earlier.
Change thisform.oFormB.show to oFormB.Show(1) && To make this form modal, note
also, you don't need thisform in this statement.
I also answer on your second post
oFormB=createobject('FormBClass')
oFormB.show(1)
thisform.text1.value=oFormB.text1.value
oFormB.release()
release oFormB
BTW, I haven't mentioned other techniques to pass multiple values from form to form.
One of the other technique is to pass form reference from calling form to called form, IOW, FormB.Init
lparameters oCallingForm
thisform.oCallingForm=oCallingForm
In text1.LostFocus event thisform.oCallingForm.text1.value=this.value
Hovewer, using this technique you may have problems with dangling object reference in some cases...
If it's not broken, fix it until it is.
My Blog