Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: OLE
Miscellaneous
Thread ID:
00010526
Message ID:
00010533
Views:
39
>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/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform