Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning from object
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00197174
Message ID:
00197180
Views:
18
>What is the suggested method for returning a value from a formclass created programatically. I'd like to create a modal form and capture some value after a keypress.

I normally create a parameter object and pass the object reference into the form - the form then populates the parameter object before dying off, and the caller can then examine the parameter object after it receives control to pick up results. In VFP6, you can even add properties on the fly to the object with the object's AddProperty method, and then use AMEMBERS() on return to see what properties were added to it, so that it's possible to create a generic parameter-passing class. Jim Booth did an article in FoxTalk a few months ago that demonstrated one way to implement this type of parameter passing in VFP6.
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