Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a class form
Message
 
À
09/11/2001 18:03:53
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00579966
Message ID:
00580045
Vues:
28
In addition to the other suggestions, I want to suggest something else that also works and often gets overlooked...

A private variable...

Don't laugh...< g >

Some may say this is not OOP. Whether you instantiate an object that has to be passed to the form or whether you declare a private variable and have the form reference that variable, I don't see a material difference.

Do I advocate the use of Private Variables for widespread use? No. I advocate the use in these limited circumstance.

Private dRetVal
*- Instantiate the class
*- Populate the variable in the class
*- Done...

It's simple and it works...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform