Dictionary Objects
A Dictionary object can be compared to a PERL associative array.
Any Values can be stored in the array and each item is associated
with a unique key. The key is used to retrieve an individual
element and it is usually an integer or a string, but can be anything except an array.
Syntax
VBScript classes are enclosed within Class .... End Class.
Dim variablename
Set variablename = CreateObject("Scripting.Dictionary")
variablename.Add (key, item)
Example
<!DOCTYPE html>
<html>
<body>
<script language="vbscript" type="text/vbscript">
Dim obj_datadict ' Create a variable.
Set obj_datadict = CreateObject("Scripting.Dictionary")
obj_datadict.Add "a", "Apple" ' Add some keys and items.
obj_datadict.Add "b", "Bluetooth"
obj_datadict.Add "c", "Clear"
</script>
</body>
</html>
There are various methods associated with DataDictionary Objects
which enable the developers to work with dictionary objects seamlessly.