Extended ascii chars

G

Guest

Is there any way to store an extended ascii char in visual basic .net

In previous VB chr$(254) ' â– 

I need to send ascii chars (8 bit) to a serial port

Thanks for any help.
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?SmFtZXMgUGFoaXJpcw==?= said:
Is there any way to store an extended ascii char in visual basic .net.

In previous VB chr$(254) ' â– 

I need to send ascii chars (8 bit) to a serial port.

You can use a byte instead, or use an encoding's 'GetBytes' method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top