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
Miscellaneous
Thread ID:
00391527
Message ID:
00391721
Views:
12
>Should I create this "thing" as a class or should I just create it as a UDF?

Alex,
I like follow JimB's rule of thumb when this question strikes...

a UDF is your best suited answer when the task or responsibility your handling could be foreseen as an extension of the VFP language. Or other words... could a future version of VFP possibly give me a native function to do this same responsibility? In the MM framework take a look at the IsA() UDF in utility.prg - prime example of what I mean by a task that is an extension of native VFP.

Now your situation here on the other hand is perfect for a session class as Larry suggests, opening specific views is something VFP is never gonna do for us natively because it's an app specific type of data handling.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Reply
Map
View

Click here to load this message in the networking platform