|
-
Jan 24th, 2006, 05:31 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] convert number to character
How do I turn a number into a character - e.g. 1 into A?
Thanks
-
Jan 24th, 2006, 06:09 AM
#2
Re: convert number to character
Chr(1)
which isnt A
A is 65
a is 97
lookup "ascii chart" in msdn to get the list
-
Jan 24th, 2006, 07:14 AM
#3
Re: convert number to character
I think he means their ordinal values rather than ASCII.
VB Code:
MessageBox.Show(Convert.ToChar(myval + 64).ToString())
-
Jan 24th, 2006, 07:16 AM
#4
Thread Starter
Fanatic Member
Re: convert number to character
I have now solved this issue.
Thank you all
-
Jan 24th, 2006, 07:19 AM
#5
Re: convert number to character
Add Resolved to the thread title. Ya never know...
-
Jan 24th, 2006, 07:21 AM
#6
Thread Starter
Fanatic Member
Re: convert number to character
how do I do that, where is the link please?
-
Jan 24th, 2006, 07:34 AM
#7
Fanatic Member
Re: convert number to character
From Thread tools, top right, choose mark as resolved, and edit the thread title.
Bob
"I dislike 7 am. If 7 am were a person, I would punch 7 am in the biscuits." - Paul Ryan, DailyRamblings
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|