Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO form ; TO ; problem !! can't return value
Message
From
06/05/1999 12:42:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/05/1999 12:34:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00215774
Message ID:
00215777
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform