|
-
Aug 23rd, 2004, 04:19 AM
#1
Thread Starter
Fanatic Member
Char to String, jScript
I know this is a really lame question but I have no idea how to do this with Javascript\ASP.
I have a number, lets say 72.
How do I convert that into a STRING. Not "72" but "H"
72 = H (i think)
Any help? I looked for several answers on the web but its 3am and im quite tired. ZZZzzzz..........
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
-
Aug 23rd, 2004, 05:34 AM
#2
Fanatic Member
whats the connection between the number 72 and the letter h?
-
Aug 23rd, 2004, 10:41 AM
#3
Frenzied Member
Originally posted by davebat
whats the connection between the number 72 and the letter h?
ASCII?
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Aug 23rd, 2004, 11:34 AM
#4
Frenzied Member
Code:
String.fromCharCode(72) // result "H"
String.fromCharCode(97, 98, 99) // result "abc"
-
Aug 23rd, 2004, 12:55 PM
#5
In VB/ASP
VB Code:
response.write Chr(72) 'output H
response.write Asc("H") 'output 72
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Aug 23rd, 2004, 07:06 PM
#6
Thread Starter
Fanatic Member
Yes I'm sorry it was really late at night when I posted this.
The connection is ASCII number to a string. I believe H is 72 in ASCII, or at least something around that.
Also, keep in mind I'm using Javascript\ASP not VBScript\ASP
I'm not actuall home to test out the .fromCharCode function but I'm sure it will work.
Thanks a lot guys!
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
-
Aug 23rd, 2004, 07:21 PM
#7
Originally posted by invitro
Also, keep in mind I'm using Javascript\ASP not VBScript\ASP
I'm not actuall home to test out the .fromCharCode function but I'm sure it will work.
Thanks a lot guys!
It works fine.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
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
|