Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO form ; TO ; problem !! can't return value
Message
De
06/05/1999 12:42:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/05/1999 12:34:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00215774
Message ID:
00215777
Vues:
28
>I have two form. which the first one will call the second form.
>both of them also set to AS TOP LEVEL form.
>In the first form i use
>>>DO Form formname;
>>>TO variable;
>The second form must set the windowtype property to Model,
>but if i do that, i found that the form wont return back the value.
>i did type return in Unload property.
>Anyone can help me ?
>thanks
>
>regard,
>chang
Chang,
SDI and modal are not compatible. OTOH a form must be modal to return value from unload. Instead have a property on caller form and call the other with passing form reference. So "called" could access to caller's PEM.
* Caller.form
do form frmCalled with thisform
*frmCalled.init
lparameters toCaller
this.oCaller = toCaller && Save form ref. to a form property

* frmCalled.anyObject.anyMethodEvent
thisform.oCaller.frmCalledRetVal = SomeValue
thisform.oCaller.anyObject.value = SomeOtherValue
thisform.oCaller.refresh
*etc
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform