Het resultaat van dit stukkie script:
is:
2
3
Ben ik nou gek of is dit dus een dikke bug? Er word gewoon een item toegevoegd ipv een error te raisen.
ASP.NET Visual Basic:
1
2
3
4
5
6
7
8
9
10
11
12
| Dim testDictionary Dim testVar, dictKey Set testDictionary = Server.CreateObject("Scripting.Dictionary") Call testDictionary.Add("1", "1") Call testDictionary.Add("2", "2") Response.Write(testDictionary.Count & "<br />") testVar = testDictionary.Item(0) Response.Write(testDictionary.Count & "<br />") 'For Each dictKey In testDictionary 'Response.Write(dictKey & ":" & testDictionary.Item(dictKey) & "<br />") 'Next |
is:
2
3
Ben ik nou gek of is dit dus een dikke bug? Er word gewoon een item toegevoegd ipv een error te raisen.
oogjes open, snaveltjes dicht