?
Solved

Creating a char from a number

Posted on 2005-04-01
3
Medium Priority
?
203 Views
Last Modified: 2010-04-16
There are 255 characters in the ascii code right?  well I'd like to know how to programatically get a char based on a number I give.

i.e. if I give it 16 then the letter A pops out (I'm sure that not right but you get the gyst)

Thanks
0
Comment
Question by:jayrod
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
NetworkArchitek earned 1000 total points
ID: 13681094
Ok so given a number you can do this

int i = 16;
char myChar = Convert.toChar(i);

You can also do the opposite with Convert.toInt()

Hope this helps.
0
 
LVL 3

Author Comment

by:jayrod
ID: 13681107
yep... thought it might have been that easy..

What are the limits? 0 to what? 255?

Thanks again
0
 
LVL 10

Expert Comment

by:NetworkArchitek
ID: 13681462
Oh, no defintiely not 255, it accepts extended codes as well. I don't know the upper limit. But definitely much more than 255
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month13 days, 15 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question