no, you are still trying to write your OWN UDF!
you have been asked to look at HOW TO USE AN UDF.
can't understand which word is way too high.

using and writing is totally different thing (at least this far I thought so)
so I again ask you to look at the HOW TO USE UDF's thread in the FAQ

you are not asked to create your own udf.
you are asked to use one written FOR YOU
it's already there, don't mind it.
just use it.
_________________________
!

download KiXnet