Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
 
 
To
12/11/2001 11:41:03
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00580536
Views:
28
>
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
Map
View

Click here to load this message in the networking platform