You're welcome. Bedtime? No, it's only 9:30 PM.
>That fixed it. && Many thanks to Tore (Bed time?:) and all who helped fix this problem.
>
>>Instead of the line lox=CREATEOBJECT('internetexplorer.application'), you can have
>>if type('lox')#'O'
>> lox=CREATEOBJECT('internetexplorer.application')
>>endif
>>That way you will always use the same instance of IE.
>>
>>>>Bummer, you're right. I should use both parts of my brain before I jump into conclusions. :-)
>>>>
>>>>>lcHTML is a string variable and has nothing to do with an IE instance.
>>>>>
>>>>>>Right, and Release lcHTML before that.
>>>>>>
>>>>>>>Add
>>>>>>>
>>>>>>>lox.Quit()
>>>>>>>lox = NULL
>>>>>>>
>>>
>>>I've been moving these code lines around, but have not had success yet.
>>>What order should they be in?
>>>
>>> lox.QUIT()
>>> lcHTML=.NULL.
>>> RELEASE lcHTML && Holds a reference to lox
>>> lox=.NULL.
>>> RELEASE lox