Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: OLE
Divers
Thread ID:
00010526
Message ID:
00010533
Vues:
42
>What's the diff. between GETOBJECT and CREATEOBJECT when it comes to OLE?
>
>
>xl = CREATEOBJECT("Excel.Application")
>xl.Workbooks.Add
>xl.Visible
>
>
>same as?:
>
>
>xl = GETOBJECT(",Excel.Application")
>xl.Workbooks.Add
>xl.Visible

Greg

Read the first line for each carefully in Help.

CreateObject()
Creates an object from a class definition or an OLE-enabled application.

GetObject()
Activates an OLE automation object and creates a reference to the object.

Notice the first words in the two defunitions. It says it all.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform