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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:




3479 Mar 22,2003 05:10 AM UTC WinForms 0
Tags: FAQ
Mukesh Motwani
Asked On March 22, 2003 05:10 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon