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:
00010562
Views:
34
>>>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
>If I didn't have the help menu, I'd be thanking you. I don't see a visible difference between the two yet, they do the same thing. Excuse my ignorance, I'm not into OLE extensively yet.

Greg

If you have them doing the same thing then it usually means there is an overlap of what functions do. This can be said of many functions in FoxPro. You can use different functions to end up with the same result. Please take this as it is meant to help but, maybe your looking too deep?

BTW, if you want to be Kool, OLE is now called ActiveX. <s>

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
Reply
Map
View

Click here to load this message in the networking platform