no, com never returns above zero.
I thought that chris check was only for the users who don't know what com is.

as if we are sure there is only com-errors, the code comes down to:
code:
Function fnConvertCOMErr($)
Exit VAL("&"+Right(DecToHex($),4))
Endfunction

being 70 [Wink]
_________________________
!

download KiXnet