>
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...
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only