Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a form in a class
Message
 
 
À
20/06/2000 14:56:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00380150
Message ID:
00382350
Vues:
22
I guess you're a bundle of fun to work for. < gd&r >

Seriously, PRIVATE is there to prevent stepping on other code's toes. It should be used in a blackbox environment to avoid unnecessary (IMO) parameter passing. If your blackbox system is reasonbly complicated (e.g several levels of program hierarchy), there is nothing wrong with creating private variables. It is synonymous with creating object properties and accessing them through the different levels of your code.

>All,
>
>private vars are an exceptionally bad idea - for much of the same reasons that publics are - plus - if decoupling is a goal - there is nothing that breaks it worse than sharing live variables.
>
>I would suggest forgetting that the PRIVATE declaration even exists. I have all but fired programmers when I see a PRIVATE in their code...
>
>Ken
>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform