Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a class form
Message
 
À
12/11/2001 11:41:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00579966
Message ID:
00580536
Vues:
29
>
What limited cirumstance? Are you suggesting using PRIVATE variables to get return values from some classes, and not others? Why the inconsitiancy when there are cleaner alternatives.
<

The limited circumstance of returning a single value from a form class.

As for cleaner, I'll throw it back to you to differentiate between different levels of cleanliness...



>
>There are only a couple of reasons I'd use a private variable. One, obviously, for anything I wanted to be global in the app (certian application objects, ect)
<

Why not a public variable for these items?


<<
and another for exposing information to really abstract code, so a Parameters statement is not required. By "really abstract" I mean code usually written by a third party, and may or may not need the information I'm exposing. I don't think using private variables is a good idea here. Passing variables by reference is essentially the same thing, and much easier to understand in code.
<<

I don't understand where you are going here. You begin with espousing a second reasons where you would use a private variable. The passage above then concludes with why private variables are not a good idea in this case. Could you clarify what you mean here?

FWIW, I don't advocate the use of Private variables as a replacement for a parameters statement. I see these as different issues all-together...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform