I've written a program making use of COMLIB to manipulate Excel sheets. I use PROCcleanup as documented on the WIKI.
All works fine !
Xlapp% += 0 : IF Xlapp% PROC_releaseobject(Xlapp%) : Xlapp% = 0
Xlbook% += 0 : IF Xlbook% PROC_releaseobject(Xlbook%) : Xlbook% = 0
But I fail to understand the purpose of the statements Xlapp% +=0 and Xlbook% += 0
Are Xlapp% and Xlbook% changed after execution of those statements ?