>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.
do form frmCalled with thisform
lparameters toCaller
this.oCaller = toCaller
thisform.oCaller.frmCalledRetVal = SomeValue
thisform.oCaller.anyObject.value = SomeOtherValue
thisform.oCaller.refresh
Cetin