Board index » Visual Studio » How can i check if a variable is connedted to a object?

How can i check if a variable is connedted to a object?

Visual Studio168
How can i check if a variable is connected to a object in vb6?

thanks


-
 

Re:How can i check if a variable is connedted to a object?

stoitchko <stoitchko@discussions.microsoft.com>'s wild

thoughts were released on Fri, 23 Jul 2004 02:32:01 -0700

bearing the following fruit:



Quote
How can i check if a variable is connected to a object in vb6?

thanks



If x IS NOTHING then



end if



Jan Hyde



--

Auction: A Place where you get something for nodding (Leopold Fechtner)



[Abolish the TV License - www.tvlicensing.biz/]">www.tvlicensing.biz/]



-

Re:How can i check if a variable is connedted to a object?

Quote
>How can i check if a variable is connected to a object in vb6?

>thanks



If x IS NOTHING then



end if



That is probably the answer the OP is looking for. On the other hand, if

he is trying to determine if a variable passed into a Function/Sub via a

Variant argument is an Object or not....



If VarType(x) = vbObject Then

.....

.....

End If



Rick - MVP



-