Apr 30, 2001 #1 fergmj Programmer Feb 21, 2001 276 US I have a string of bytes and I want to read that string byte by byte and convert each byte in the string to its own Hex value. How can I do this? Thanks. fergmj
I have a string of bytes and I want to read that string byte by byte and convert each byte in the string to its own Hex value. How can I do this? Thanks. fergmj
Apr 30, 2001 1 #2 jmarler Programmer Jan 29, 2001 679 US You need to convert the string to a byte array. Try this . . . Code: Dim arrByte() as Byte arrByte = {some string data} Remember however that if this is a Unicode string (the default for Win32) every other byte will be a 0. - Jeff Marler B-) Upvote 0 Downvote
You need to convert the string to a byte array. Try this . . . Code: Dim arrByte() as Byte arrByte = {some string data} Remember however that if this is a Unicode string (the default for Win32) every other byte will be a 0. - Jeff Marler B-)
Apr 30, 2001 Thread starter #3 fergmj Programmer Feb 21, 2001 276 US Jeff - I have converted it to a byte array. Now, how do I take each byte and convert that to a hex value? Thanks fergmj Upvote 0 Downvote
Jeff - I have converted it to a byte array. Now, how do I take each byte and convert that to a hex value? Thanks fergmj
Apr 30, 2001 1 #4 chiph Programmer Jun 9, 1999 9,878 US Use the Hex() function. Chip H. Upvote 0 Downvote