Created
May 19, 2021 19:51
-
-
Save jrwarwick/7d9ffa6ae3183044f0870ad5d74b7b7a to your computer and use it in GitHub Desktop.
Simple quick and dirty hex dump of a string in VBE for debugging ugly hacks
This file contains hidden or 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
'Quick and dirty hexdump of a string for debugging stuff | |
' Convert string to bytes | |
Dim subjectSring As String | |
Dim abData() As Byte | |
'read in suspect string into subjectSring here... | |
abData = StrConv(subjectSring, vbFromUnicode) | |
For i = 0 To UBound(abData) | |
Debug.Print Hex(abData(i)); "='" & Chr(abData(i)) & "'" | |
Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment