Thanks Si,

I see what the 'code' option is for now (damn newbies )

incidentally, (for others viewing this thread) the reason I pass Erl to the error handling routine and not attemp to capture it is, I suffered problems when I first put this module together caused by the ERROR LINE NUMBER (Erl) within the routine.

(idleness... Blame the compiler, not the coder)