Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OOP for the heck of it?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
OOP for the heck of it?
Divers
Thread ID:
00391527
Message ID:
00391527
Vues:
49
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!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform