We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to create an array of hex bytes from a string?

I have to read a string from a textbox and convert it to an array of hex bytes to send it to a COM port. Say for example my string is "88 01 04 07" and I want to create an array Dim buffer() As Byte The buffer should read the string and store {&H88,&H01,&H04,&H07}. How do I print the contents of this buffer to make sure that the conversion is right and how do i convert it from string? Thanks Mukesh

Loader.
Live Chat Icon For mobile
Up arrow icon