Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yet Another VFP6 tip
Message
 
À
14/07/1998 07:32:28
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00117011
Message ID:
00117221
Vues:
17
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform