Good question...
There is a function in VBScript called VarType which behaves similarly to Visual Basic, returing the CLSID of the passed parameter. This behaves as you requested:
dim sName
sName = VarType(oObj)
look up the VBScript documentation http://msdn.microsoft.com/scripting for more...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.