Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference and When to use NEW/ADD/CREATEOBJECT()
Message
From
14/04/2004 21:16:43
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00894349
Message ID:
00894982
Views:
18
>Nancy,
>
>>I did read your other, illuminating, posts on this topic, and have wondered why you've found
>>
laForm[1].NewObject( "lblXYZ", "label" )
>>to be inadequate? I understand why the functions won't work, but surely the method NewObject() will accomplish the same task you've put AddObject() to? Either that or I need more coffee. TIA.
>
>You are right, the NewObject() method is equivalent to the AddObject() method. Old habits die hard so I tend to forget about the NewObject() method.

Cool. Thanks for the follow up.

>I also never got into the habit of using either form of NewObject() though because it causes classlib names to be seeded through out the entire app I really do prefer to be able to have a SET CLASSLIB in effect that just covers everything. But this is purely a personal choice sorta issue. *s*

Heh, I'm a big believer in personal choice.
Previous
Reply
Map
View

Click here to load this message in the networking platform