Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference and When to use NEW/ADD/CREATEOBJECT()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00894349
Message ID:
00894361
Vues:
16
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform