Sub test()
Dim authDict As Dictionary
Set authDict = CreateObject("Scripting.Dictionary")
authDict.Add "Anton", 1
authDict.Add "Martin", "3"
authDict.Add "Dave", 1
testKey = authDict.Exists("Alina") ' False, but adding this Key to dictionary by itself
testVal = authDict("Alina")
testKey2 = authDict.Exists("Alina") ' now it true
testVal2 = authDict("Alina")
End Sub
Why after not exists state dictionary adding this key to dictionary by themselves? How to prevent this
testVal = authDict("Alina"), it adds to the dictionary.