I need to write a program in Quickbasic that will send hex in 1 byte format over the serial port. They have a plasma display where my dad works, and since my dad hasn't coded in basic for years, he commissioned me to do it, but I have no experience in Hex. So basically, I just have to send 1 byte hex numbers over the serial port to control the display. Any help?

I need to write a program in Quickbasic that will send hex in 1 byte format over the serial port. They have a plasma display where my dad works, and since my dad hasn't coded in basic for years, he commissioned me to do it, but I have no experience in Hex. So basically, I just have to send 1 byte hex numbers over the serial port to control the display. Any help?

If you send a character, it doesnt matter whether it's hex or not.

Hex is just another numbering system. It can make a difference when sending
large numbers (like 8 bytes of information or so).
but,
Esc for example (escape) is 27 decimal, 1b hex but it's the same character.
either way and the same value either way.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.