lol.
why would you want to find and replace a var from inside a UDF?
I mean, you shouldn't.
check out the how to use udf's FAQ.
I bet it says: "don't change the udf source"
_________________________
!

download KiXnet