I could have swore I remember a thread about a case where VarType() didn't work, but now I can't find it. < shrug > Sorry for any confusion.
>TYPE() behaves like this, VARTYPE() doesn't.
>
>
>lox = CREATEOBJ("form")
>? TYPE("lox") && "O"
>lox = .NULL.
>? TYPE("lox") && "O"
>
>lox = CREATEOBJ("form")
>? VARTYPE(lox) && "O"
>lox = .NULL.
>? VARTYPE(lox) && "X" - null
>
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!