it seems that if you test the value of a dictionary
object item in an if statement, and the key doesn't
exist, it is created in the dict with an empty value..
we got around this by doing a .exists before the if
statement, however this still seems a little strange
eg.
set oDict = CreateObject("Scripting.Dictionary")
oDict("key1") = "Y"
oDict("key2") = "N"
oDict("key3") = "Y"
' this results in the expected keys and values
for each key in oDict
response.write key & ":" & oDict(key) & "<br>"
next
sInvalidKey = "key4"
' refer to a key that doesn't exist
if oDict(sInvalidKey) = "Y" then
' whatever
end if
' this results in the expected keys and values
' with the addition of key4 with an empty value!
for each key in oDict
response.write key & ":" & oDict(key) & "<br>"
next