onDestroy( ) in win32lib
- Posted by John E. Franklin <johnericfranklin at rock.com> Jan 21, 2006
- 457 views
I don't know if this is working, but nothing is printed as the app closes. I want to close a file if user closes the app with the X button. [code] procedure onDestroy() for iter = 1 to 200 do puts(1,"The end of the program") end for if (FileIsOpen = 'Y') then ------------ close(fileInteger) ---------------------------- FileIsOpen = 'N' ------------------------- end if ---------------- end procedure [/code]