Last post Dec 10, 2007 05:47 AM by dreamzor
Dec 10, 2007 04:05 AM|dreamzor|LINK
Hi, didnt know where to post this(yes I know its a .NET forum, but really love this place =) )
I got a
page where I got this code.
Set d = CreateObject("Scripting.Dictionary")
d.CompareMode = 0
For Each x In tmpArray
If d.Exists(x) Then
Response.Write "<br> " & x & " Exists"
Response.Write "<br>Adding" & x
d.Add x, x
The ForEach checks to se if the emailadress allready exists in the array, if it does do nothing and if it doesnt, add it to the dictonary.
tmpArray contains email adresses that are coma seperated, all that works fine. but when I run this the 2 first adresses allways get added to the dictonary.
anyone got a clue what Im doing wrong?
Dec 10, 2007 05:47 AM|dreamzor|LINK
I got it fixed.
I had to do a trim on the values first.