Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from a modal form
Message
De
15/12/1997 11:30:16
 
 
À
15/12/1997 10:36:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00065924
Message ID:
00065945
Vues:
37
>What's the best way to return a value from a modal form class?

In addition to all the other responses you have received, many people are using an object to handle that. It might interest you.

You define an object that will be used to call the form which is responsible to return a value. That object can be a line. Wherever you need to call a form to return a value, you drop that object on the form. When you want to call the form, you may call a method of the object which will do something like DO MYFORMTORETURNAVALUE WITH This. In your form, you may store the returned value in This.Value which can be the property to hold the value.

I've been using both approaches. Sometimes, I prefer to use the object method as I can benefit of object orientation and have code to be executed automatically, etc. Some other times, when I only need a simple thing, I prefer to use the conventional approach.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform