Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference between forms and class based forms?
Message
 
 
À
24/03/2009 19:30:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01391221
Message ID:
01391258
Vues:
123
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform