Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreateObject() vs. NewObject() functions
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01367158
Message ID:
01367224
Vues:
8
Hi Bhavbhuti,

I believe this question was discussed here before and as far as I recall, the NewObject function is slower than CreateObject. I would need to find this discussion, because I would think otherwise.

>Hi all
>
>Maybe I am doing something wrong but for me a command like the following fails in the development environment when I DO main.prg (but not in the built exe)
>
loODBC = NEWOBJECT("cODBC", "cVSONoSCNonVisualUtilities")
>unless I provide the full path to the vcx
>
loODBC = NEWOBJECT("cODBC", "C:\VSO3\Common\Libs\cVSONoSCNonVisualUtilities.vcx")
>
>Alternatively I can switch to the following and yet be successful
>
loODBC = CREATEOBJECT("cODBC")
>
>Which is more advisable function to use - NewObject() or CreateObject()
>
>Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform