Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form problem
Message
 
 
To
23/10/2000 13:06:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00432931
Message ID:
00433040
Views:
43
>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) && Modal form
  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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform