sorry boss....
but, your udf is not really an udf but library which uses UDFs.

could you strip it down to UDF.
and once done, at the proper header like said in the UDF library rules.

thanks.
_________________________
!

download KiXnet