>I am converting old 2.x dos foxpro to vfp6 code. the old code uses alot of say & gets to interact with the endusers. I am trying to use forms - labels and textboxes - to achieve the same. I am creating alot of forms to take the the place of the say & gets. I accept that, but my problem lies with passing the user input, i've tried to use return varailbe in unload propery of form and that works ok for 1 variable. What do you do when you need to return many variables bake to the calling program for processing? Help!
Create an object that contains a property per variable you want to pass back; populate the object from the form properties (at least I'm assuming that's where you're storing things in the form) and return the object to the calling program; it can then use the object's properties as it sees fit.
In the long run, you'd be much better off rewriting the application to use buffered tables or use objects mantained using SCATTER...NAME and GATHER...NAME, but that's up to you to decide. The payoff in the long run is tremendous; by continuing to use legacy stuff rooted in FP 2.x, you're giving up most of the really valuable enhancements that make VFP a strong language. And I'm sure that Jim Booth will probably say this much better than I can!
>frank