How do I do something like this in ASP / VBScript?
Dim pairs
pairs= Dictionary(String, Integer)()
For Each item As String In storage
Dim temp
temp = item.Split(".")
pairs.Add(temp(0), temp(1))
Next
How do I do something like this in ASP / VBScript?
Dim pairs
pairs= Dictionary(String, Integer)()
For Each item As String In storage
Dim temp
temp = item.Split(".")
pairs.Add(temp(0), temp(1))
Next
Use the "Scripting.Dictionary" object like this:
set objPairs = Server.CreateObject("Scripting.Dictionary")
objPairs.add temp(0), temp(1)