Reputation: 127
Does anyone know how to identify if an object passed to a function (classic asp/vbscript) is actually a dictionary object vs any other type?
Obviously I can do isObject(myObj)
but that doesn't tell me if it's a dictionary collection or not.
Upvotes: 3
Views: 1904
Reputation: 175826
You can;
dim dict: set dict = CreateObject("Scripting.Dictionary")
print typename(dict)
>>Dictionary
Upvotes: 7