I would do it this way:

On your first form, put a button to call the second form. In the button's click event do this:

do form secondform with thisform

On the second form init event:

lparameters toForm

thisform.oForm = toForm (you created a property called oForm in the second form and attach the parameter to it)

the second form should be modal. Then you make whatever changes you need.

When you completed your changes, I assume you typed something in a textbox (named txtWhatIType in this example)

thisform.oForm.text1.value = thisform.txtWhatIType.value
thisform.oForm.text1.refresh

release thisform

What you have done here is send a reference to the first form to the second form (thisform). It gets into the second from in its init event and is captured in the second form oForm property

When you finish your changes, you pass the value of those changes from the txtWhatIType textbox into text1 (or whatever you named it) in form 1. Just in case, but perhaps not necessary, you refresh the first form's text1.value

You release the second form and you should have the value you want in the first form

Rafael Copquin


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/c5da99c1-d139-5480-ac3c-c8ef98a78...@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to