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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Platform:

Replies:

3479 Mar 22,2003 12:10 AM Windows Forms 0
loading
Tags: FAQ
Mukesh Motwani
Asked On March 22, 2003 12:10 AM

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

CONFIRMATION

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.

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.

;