>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