David Meagor
David Meagor

Reputation: 127

Detect an a Dictionary Object in Classic ASP

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

Answers (1)

Alex K.
Alex K.

Reputation: 175826

You can;

dim dict: set dict = CreateObject("Scripting.Dictionary")
print typename(dict)

>>Dictionary

Upvotes: 7

Related Questions