Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference between forms and class based forms?
Message
 
 
To
24/03/2009 19:30:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01391221
Message ID:
01391258
Views:
122
>How do you return a result from a VCX based (modal) form?

Several ways.

Our framework has a special DoForm function, that also allows to return a value.

But in general you can do this like this
loForm = newobject('myFormClass')
loForm.Show()
myValue = loForm.uReturnValue
loForm.Release()
And the close button of the form uses thisform.Hide() instead of thisform.release()


>
>>>Fair enough. Why? What difference does it make?
>>>
>>>Jim
>>>
>>
>>Mostly because the framework we're using only uses VCX based forms. But somehow I now like much more VCX based forms and hopefully would not ever need to use SCX based.
>>
>>Though any habit can be broken, so we'll see.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform