Also, why do you include the UDF in yoru code and then also CALL the same UDF located in an external file? Please read the FAQ Forum, e.g. How to use UDFs
_________________________
There are two types of vessels, submarines and targets.