Hi Tore
>Vartype() was introduced after type(), and what I heard was that it was preferrable because it was faster and safer. I think that I once read that there are a few rare cases where vartype() is not recommended, but I am not absolutely sure. Personally I always use vartype().
That is nice to hear, as you have been using it have not encountered a problem with it, then I guess is it safe. Please check out Borislav's response to this thread, I used his codes and added equivalent VARTYPE() calls, the 4th call of TYPE() which return a U, generate an error when replaced by VARTYPE().