>>>In some older threads it was suggested to use the syntax lox=GetObject(,"InternetExplorer.Application") to get an object reference to a running IE. However, with VFP9 and IE7 this line reports an error, OLE error code ox800401e3: Operation unavailable. Can anyone help me?
>>
>>TRY
>> lox=GetObject(,"InternetExplorer.Application")
>> ? [Get]
>>CATCH
>> lox=CreateObject("InternetExplorer.Application")
>> ? [Create]
>>ENDTRY
>>
>
>That was what I wanted to implement, but since the getobject() fails instead of finding the already running IE, I always end up with a new instance.
I'm not sure why, but here on Vista I have only one instance, no matter how many times I call CREATEOBJECT:
CLEAR
FOR lnFor = 1 TO 20
lcClass = [loX]+TRANSFORM(lnFor)
TRY
&lcClass = GetObject(,"InternetExplorer.Application")
? [Get], lnFor
CATCH
&lcClass = CreateObject("InternetExplorer.Application")
? [Create], lnFor
ENDTRY
NEXT
WAIT WINDOW [Check Task Manager to see how many instances you have]
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.