Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OOP for the heck of it?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
OOP for the heck of it?
Miscellaneous
Thread ID:
00391527
Message ID:
00391527
Views:
48
Hi all!

I'm working on an app that calls the same procedure from several parts. It's just a short snippet of code that will open 2 or 3 views, and assemble one or more word documents based on the contents of the views (one is a list of documents to print and the other views have the actual data).

Should I create this "thing" as a class or should I just create it as a UDF?

Both would accomplish the same result, and I'm inclined to create a class because it might be easier to add some more functionality to it (even though right now I can't really think of much to add to it).

As a UDF I'm guessing that there would be less overhead involved in "executing" the code, but I'd like to know what others think. Am I doing OOP just for the heck of it or is there a real value to be gained from this approach?

Thanks!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Next
Reply
Map
View

Click here to load this message in the networking platform