Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NewObject() vs AddObject()
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01292009
Message ID:
01292658
Views:
16
>>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--
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform