Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interform comm- multiple return vals/ best methods?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00735260
Message ID:
00735747
Views:
23
Hi David,

I use all of the methods you described.

The easiest is just to use the:
m.ReturnString=''
do formb to m.ReturnString
and then concatenate a string of your return values (I like to use a chr(13) as the delimiter)

Like this:
m.ReturnString=''
do formb to m.ReturnString

if !empty(m.ReturnString)
  m.FirstName = mline(m.ReturnString, 1)
  m.LastName  = mline(m.ReturnString, 2)
  m.WorkPhone = mline(m.ReturnString, 3)
endif 
As for the problem you described where you pass a reference from the calling form to the child form, just set the calling form's object values in the [ Save ] button's click method. Then the calling form won't be updated unless you explicitly request.

You're on the right track!!!

Good luck!

Hugh
Microsoft hears loudest what the VFP community says about Visual FoxPro by looking at the bottom line!

Support the product. Buy the latest version!

Hugh Winters @ WorldData 408-512-1131
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform