Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference and When to use NEW/ADD/CREATEOBJECT()
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00894349
Message ID:
00894385
Views:
15
Hi Sergey

Thanks for responding and explaining the differences.

>The ADD is a DEFINE CLASS clause and is used when you want to add objects to a class at desine time. The CREATEOBJECT() functin/AddObject() method require that classes wehere loaded into a memory with SET CLASSLIB/SET PROC commands. The NewObject() function/method allows to specify a library and even module where clas s is contained. It's slower than CREATEOBJECT() because it opens class library every time it's called.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform