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:
00894361
Views:
15
This message has been marked as the solution to the initial question of the thread.
Bhavbhuti,

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.


>Hi all
>
>Being a relative newbie, I have used these 3 in different situations but without much insight, because they worked I kept them.
>
>What are the differences (except for parameters) and when are they to be used (in proper context)
>
>Please advise.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform