>>>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