Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewObject() vs AddObject()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01292009
Message ID:
01292658
Vues:
17
>>The .AddObject() and CreateObject() rely on SET CLASSLIB and SET PROCEDURE (non-visual classes) to find a class to instantiate. The NewObject()/.NewObject() allow to specify a class library/.FXP as parameter.
>
>So why ever use AddObject() again? Why not always use NewObject(), as it seems more flexible?

I can see 2 reasons:

  • Redability
  • Performance, but the difference may not be that significant
    --sb--
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform