Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00580464
Views:
22
OOP is an interesting topic. Some persons approach it as if it were a Religious Topic and therefore take a theological approach. I like something Whil Hentzen said about OOP about 6 years ago, when he used the term “POOP”, that is, “Proper Object Oriented Programming”. :)

It is nice to have a framework that allows you to work the way you want. Each developer has an approach to solving a problem with VFP. Some approaches are better for one reason or another. In the end it is the success of the application that will be your source of measurement.

A developer could take the advice of Grady Booch and approach OOP from an academic viewpoint. The real world needs real solutions. Thinking out your approach to OOP is important. Some day you may have to debug your own code! :)

Tom



>In addition to the other suggestions, I want to suggest something else that also works and often gets overlooked...
>
>A private variable...
>
>Don't laugh...< g >
>
>Some may say this is not OOP. Whether you instantiate an object that has to be passed to the form or whether you declare a private variable and have the form reference that variable, I don't see a material difference.
>
>Do I advocate the use of Private Variables for widespread use? No. I advocate the use in these limited circumstance.
>
>Private dRetVal
>*- Instantiate the class
>*- Populate the variable in the class
>*- Done...
>
>It's simple and it works...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform