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:
00010557
Views:
35
>>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
** ** ** ** ** ** ** ** ** ** **
Gregory Cummines
Visual FoxPro 3.0/5.0
C/C++ Applications
** ** ** ** ** ** ** ** ** ** **
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform