>Be carefull - you must quit successfully created Excel application. Or else it will stay in memory upon OS reload. For instance, I check Excel presence by such function :
>
>***************************************
>FUNCTION ExcelPresent
>***************************************
>TRY
> loz=CREATEOBJECT('excel.application')
> lcVersion=loz.Version
>CATCH
> lcVersion=''
>ENDTRY
>IF !EMPTY(lcVersion)
> loz.quit() && don't forget to do it
>ENDIF
>RETURN !EMPTY(lcVersion)
Hi Sergey,
I usually do it in a different way, like this
try
...
catch
...
finally
if vartype(loExcel) = 'O'
loExcel.Quit
loExcel = null
release loExcel
endif
endtry
If it's not broken, fix it until it is.
My Blog