Using the Dictionary Object (JScript) | Copy Code |
---|---|
var y = new ActiveXObject("Scripting.Dictionary"); y.add ("a", "test"); if (y.Exists("a")) document.write("true"); ... |
Using the Dictionary Object (Visual Basic) | Copy Code |
---|---|
Dim d ' Create a variable. Set d = CreateObject("Scripting.Dictionary") d.Add "a", "Athens" ' Add some keys and items. d.Add "b", "Belgrade" d.Add "c", "Cairo" ... |