>Try VARTYPE(myvar) -- if it returns "O" it's an object, if it returns "X", it's NULL
Sorry Guys,
I meant to post this in the VB forum. Doh!
BTW, type("MyObject.Name") = "C" is the best way in VFP. Vartype returns the type of the var, regardless of it's content. So if it was an object and was later set to .null. it still returns "O".
See: Classes - VCX Re: Determining existence of an object Thread #
251780 Message #
251909
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!