Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Varaibles...
Message
From
14/07/1999 15:59:31
 
 
To
14/07/1999 15:10:54
Frank Cavone
Monetary Management of Ny, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00241443
Message ID:
00241484
Views:
11
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform