>Mike's correct about IsObject() in VB. However, if the variable has been set equal to Nothing, it will still return True. So, you have to check that condition as well.
Yep, figured that would happen. I think I got it though, with the help of someone in the VB forum.
If Not oTest Is Nothing Then
MsgBox ("object")
Else
MsgBox ("nothing")
End If
Seems to be working. Thanks.
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!