Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One Form to Another
Message
 
 
To
05/12/1999 11:18:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00298054
Message ID:
00298869
Views:
21
Well, I don't think it is a good idea to post half-baked and incomplete answers....

Logically, when you are obtaining a value from a form, that form should be modal. If you care to debate this, fine. Your move...

Sometimes, simplification is the right thing to do.....


>Again I reply here, because you directed it to my mailbox (btw I don't think it's a good idea). Modal form is simplification of the task, mostly the task of answerer. Normal windows application uses modeless forms, at least as common case.
>
>>Hi Steve....
>>
>>Not a complicated situation at all. Essentially, you need to return a value from a called form. Anytime you do this, the called form should be model. So, the whole business of looping through the form's collection with the For Each construct constitutes little more than a complete waste of time<s>.
>>
>>So, here is what to do:
>>
>>1. Set the WindowType Property of the note form to Modal.
>>2. Create a custom property on the note form called strNote
>>3. In the form that has the note, set the controlsource of the control you are
>> using to capture the note with: Thisform.strNote
>>4. In the Unload of the note form, issue this code: Return This.strNote
>>
>>
>>How does the code look in the first form?:. Most likely, you will have a command button to launch the form. So, you may have code like this:
>>
>>Local strNote
>>Do Form frmNote To strNote
>>This.parent.txtNote.Value = strNote
>>
>>
>>Hope this helps...
>>
>>
>>>I have two forms open at one time. I type in a note on the one form and close it. How can I get a text box on the remaining form to populate with the note I typed in on the form I closed. Thanks.
>>>
>>>God Bless,
>>>S. Dyke
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform