>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.