Hi Tore
>Use VARTYPE(oObject) instead of type('oObject'). Vartype is faster and it also gives correct result.
Thanks for your response. I will start using VarType() from now onwards, but I am a bit confused about VarType and places where TYPE() is the right function to call instead of VarType().
If it is not a long explanation can you give me a bit of low-down on VarType().