Answers for "vbnet convert charatcer to binary"

VBA
0

vbnet convert charatcer to binary

Dim txtBuilder As New System.Text.StringBuilder

            For Each Character As Byte In System.Text.ASCIIEncoding.ASCII.GetBytes(MyString))
                txtBuilder.Append(Convert.ToString(Character, 2).PadLeft(8, "0"))
                txtBuilder.Append(" ")
            Next

            MyBinary = txtBuilder.ToString.Substring(0, txtBuilder.ToString.Length - 0)
Posted by: Guest on August-01-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language