Article View: borland.public.jbuilder.java.language
Article #254Convert ASCII Code to String
From: Bernie Hunt
Date: Sat, 23 Sep 2006 16:24
Date: Sat, 23 Sep 2006 16:24
17 lines
1303 bytes
1303 bytes
I've got an int that holds the ASCII code for a charactor and I need to convert that to the char represented by that ASCII code. Example; int myInt char myChar myInt = 68 // Ascii code for "D" myChar = needs to be a D But I haven't been able to figure out how to make that happen. I've found a couple of ways to make myChar a string equal to 68, hahahaha but not quite what I need. I'm working around external data and other people's code so I don't really have the option to go back and start in a better way. Can anyone help with how to assign the ASCII code in a int to a char? Thanks, Bernie
Technical Details
Message-ID:
<Xns98477E3712C1Bbhuntoptonlinenet@207.105.83.66>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,2160c0f07f672f04,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.jbuilder.java.language Subject: Convert ASCII Code to String From: Bernie Hunt <bhunt@optonline.net> Organization: Cybertec Services Message-ID: <Xns98477E3712C1Bbhuntoptonlinenet@207.105.83.66> User-Agent: Xnews/5.04.25 NNTP-Posting-Host: 69.123.14.249 Date: 23 Sep 2006 09:24:25 -0700 X-Trace: newsgroups.borland.com 1159028665 69.123.14.249 (23 Sep 2006 09:24:25 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail