>While I'm here, I think that you are also mistaken about the VARTYPE() function, which you describe as performing exactly as documented. Looking that one up I find the last sentence to say that it returns "U" if you specify a variable that doesn't exist. Can you blame anyone for assuming that an object would also be considered a 'variable'. No where does the Help warn the user that it can/will give an error under specific conditions, while the statement cited certainly leads one to believe that "U" is the worst possible outcome to be expected.
It does "work" when passing an object. This was the (IMHO, special) provision made after the initial function was introduced and it did not handle unknown variables. What still causes an error is checking a property in an unknown object.
I explained my opinion ti tis fullest in the post you are referring to, and I won't beat the horse now, but I will simply restate: If you are getting an error with VARTYPE, then you are using it for something it was not designed for.
Erik Moore
Clientelligence