Monday, December 17, 2007

How to create a Dictionary object and add information to the Dictionary

How to create a Dictionary object and add information to the Dictionary

S T E P - 1

- We need to create a Dictionary object.

<%

Set objDir = CreateObject("Scripting.Dictionary")

%>

S T E P - 2

- Now we can add some values to it. We also need to assign the key name to identify the value so that this will make the user easier to get the value:

<%

Set objDir = CreateObject("Scripting.Dictionary")

objDir.Add "Key1", "This is first value"

objDir.Add "Key2", "This is second value"

%>

No comments: