Created
August 16, 2018 13:08
-
-
Save rikukissa/dc9b0b598cec5132010b7dad6828bdcd to your computer and use it in GitHub Desktop.
Dictionary printer for Visual Basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function PrintDict(Dict as Dictionary, Optional ByVal Stack as String = "") | |
For Each Key In Dict.Keys() | |
If TypeOf Dict(Key) Is Dictionary Then | |
Debug.Print Stack & Key & ":" | |
PrintDict Dict(Key), Stack & " " | |
Else | |
Debug.Print Stack & Key & ": " & Dict(Key) | |
End If | |
Next | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure 👍 you can achieve the same with any Dict type just by modifying the code a bit. The basic idea of how the inputted Dict is looped through should be the same