See WriteLog() and WriteLog2() for some ideas.
_________________________
Home page: http://www.kixhelp.com/hb/