Closed4
VBA(VB6/VB7)のScripting.Dictionaryの並び順
Scripting.DictionaryをFor Eachで回した時、挿入順に列挙されるが、この動作は保証されているのか?という疑問がわいた。
ドキュメント上では特に言及がない。
Dictionary Object | Microsoft Docs
この記事をみると、Knowledge Baseで言及があるらしい。
Dictionary オブジェクトの並び順 - 帰りは気楽な歌で
しかし、URLは現在Not Found
Wayback MachineではこのURLで見れる。
Sorting a Scripting Dictionary Populated with String Data
Because this information is stored unsorted, enumerating through the array returns information in the order it was stored.
このスクラップは2021/03/23にクローズされました