Information générale
Catégorie:
Codage, syntaxe et commandes
With NewObject, you can specify the path/filename of a VCX file in the second argument. So, you can do this:
oFoo = NewObject("fooclass","c:\temp\foo.vcx")
This obviates the need to do Set ClassLib. Now, you can explicitly determine which class definition to use.
>Hi,
> What is the differences between NEWOBJECT() and CREATEOBJECT()? As noticed in MSDN, NEWOBJECT() allow to createobject without opening it. What does it mean? If I use it to automate word.application, what is the different between both of the commands?
>
>Thank you
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement