The title says it all really. I want to get the type of a variable using vbscript.
Thanks.
The title says it all really. I want to get the type of a variable using vbscript.
Thanks.
If you want to get the type name of an object assigned to a variable with Set
, you can use TypeName
instead.
Class SomeClass
'' empty class
End Class
Dim x
Set x = New SomeClass
WScript.Echo TypeName(x) '' displays "SomeClass"