Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Yet Another VFP6 tip
Message
 
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:
00117221
Views:
16
>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.
Jeroen,

Use #DEFINEs ro variables, use anything you want to hold thwe class names. The point is that in VFDP5 you MUST have the classlibrary open before you create anything in that library, with NewObject you can specify the libraqry at the time you create the object. The library can even be built inot some other app or exe file.
Previous
Reply
Map
View

Click here to load this message in the networking platform