Alaska Software Inc. - createobject vs getobject
Username: Password:
AuthorTopic: createobject vs getobject
Jorge Lcreateobject vs getobject
on Sat, 24 Jan 2009 23:01:44 -0300
Hello to all

i don´t understund the diference beteewn GetObject Vs CreateObject()

the first diference is that i use createobject(), the activex reload each 
time that i call one

can anybody tellme the real diference, and how must to use each one ?

regards to all
Rodd Graham Re: createobject vs getobject
on Sun, 25 Jan 2009 01:21:34 +0000
Hello Jorge,

> i dont understund the diference beteewn GetObject Vs CreateObject()
> 
> the first diference is that i use createobject(), the activex reload
> each time that i call one
> 
> can anybody tellme the real diference, and how must to use each one ?

AFAIK, the only difference is whether you want to force a new instance.  
CreateObject() always creates a new instance where GetObject() will get an 
existing instance if it exists and fallback to CreateObject() if it doesn't 
exist.

Regards,

Rodd Graham, Consultant
Graham Automation Systems, LLC
Jorge LRe: createobject vs getobject
on Sun, 25 Jan 2009 09:22:15 -0300
Thanks Rodd


"Rodd Graham" <rgraham@grahamautomation.com> escribió en el mensaje de 
noticias news:6c56a922481788cb4c701acdfb2d@news.alaska-software.com...
> Hello Jorge,
>
>> i don´t understund the diference beteewn GetObject Vs CreateObject()
>>
>> the first diference is that i use createobject(), the activex reload
>> each time that i call one
>>
>> can anybody tellme the real diference, and how must to use each one ?
>
> AFAIK, the only difference is whether you want to force a new instance. 
> CreateObject() always creates a new instance where GetObject() will get an 
> existing instance if it exists and fallback to CreateObject() if it 
> doesn't exist.
>
> Regards,
>
> Rodd Graham, Consultant
> Graham Automation Systems, LLC
>
>
>