Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a form in a class
Message
 
 
To
20/06/2000 14:56:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00380150
Message ID:
00382350
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform