473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Extended ascii chars

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.
Nov 20 '05 #1
3 3903
Cor
Hi James,

Do you mean

dim b as byte = 254

Or do I see something wrong?

Cor
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.

Nov 20 '05 #2
"James Pahiris" <an*******@discussions.microsoft.com> schrieb
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.


If you want to store the character code, why not use a Byte variable?
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
* "=?Utf-8?B?SmFtZXMgUGFoaXJpcw==?=" <an*******@discussions.microsoft.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christian Wilcox | last post by:
I'm trying to programmatically access information from a telnet session which is normally accessed with a telnet program capable of terminal emulation (currently set at VT320). The initial login...
1
by: | last post by:
Hey all, Quick question...been bugging me for some time, really. I have a console app, it does some things, and I want to save an array of text to a text file. The text consists of ASCII and...
4
by: wob | last post by:
Many thanks for those who responded to my question of "putting greek char into C string". In searching for an solution, I noticed that there are more than one version of "Extended ASCII...
0
by: brrrdog | last post by:
Whenever I write to Response.Outputstream after doing a plain response.write, I get a delimiter between the two writes that is made up of three extended ascii chars (decimal equivalents 239,...
3
by: Stu | last post by:
Hi, I have a web service which accepts a password field When I send encrypted character to this web service and they happen to be an extended character I get an xml error.How do I solve this ...
13
by: ramif | last post by:
Is there a way to print extended ASCII in C?? I tried to code something, but it only displays strange symbols. here is my code: main() { char chr = 177; //stores the extended ASCII...
5
by: aagarwal8 | last post by:
Hi, I want to display the extended ASCII charset in the list view (in List mode), but when i assign any of the Ex. ASCII chars to the listview item text, it renders blank. Any idea how i can...
0
by: jumperbl | last post by:
I am converting hex to ASCII and one of the words has a dot in the middle, which is in the extended ascii characters. when i do this i get the ascii chars. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.