comp • • trie • _next

For Each Trie (

Dim hTrie As Trie
Dim aVariant As Variant
For Each aVariant In hTrie

Enumerates all values in the Trie in lexicographic key order. The Key property is set for each enumerated value.

If you picture the Trie as a tree (and have all child nodes ordered lexicographically), the lexicographic traversal of the trie is the pre-order traversal of the tree (only counting nodes with a value).