Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy classes to new applications or use central classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00144539
Message ID:
00145337
Views:
47
>By "stable enough" I meant that the class works fine "as is" there isn't any big reason to use bClass components inside.

Gotcha.

>Factory patterns can be useful. My dfHGrid class has properties that allow the floating shape to come from a user specified class/classlib.

This is a cool thing about VFP: you can instantiate a class from a string. Where you'd have to write a factory method in C++, you can just set a property in VFP.

>So the grid is it's own factory instead of using another factory object.

Most of the time, the factory isn't a separate object--it's just an (overrideable) method that a class calls instead of instantiating objects directly.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform