Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One Form to Another
Message
De
05/12/1999 11:59:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00298054
Message ID:
00298876
Vues:
23
I don't want to make the next move now. Actually, I still have an advice to you, but it's Sunday, I am in great mood. Few next hours I'm going to spend with my friends doing something that is much more interecting to me that what I do now. SO what's the point.
You know what, if my answers are half-baked then yours are really dangerous to eat.

>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
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform