How to check type of object in VB 6 - Is there any method other than \'TypeName\' because its not feasible to check it witrh \'TypeName\' I am expecting something like Quich
For object variables, use TypeOf ... Is:
TypeOf ... Is
If TypeOf VarName Is TypeName Then ''# ... End If
For example:
Dim fso As New Scripting.FileSystemObject If TypeOf fso Is Scripting.FileSystemObject Then Debug.Print "Yay!" End If