Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet Another VFP6 tip
Message
From
14/07/1998 08:46:43
 
 
To
14/07/1998 07:32:28
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgium
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00117011
Message ID:
00117085
Views:
18
>Is hardcoding classnames the way to go ? What if I change the name of a class or want to add in another layer does this means I need to edit all my code.

Check out creating an Abstract Factory pattern object for your aps. This will allow you to hardcode the class 'token' which the AF looks up in your 'lookup' table to determine the true class name.

See _Design Patterns_ by Gamma, Helm, Johnson, Vlissides

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform