Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ascii number to string?!?!

Status
Not open for further replies.

jkat

Programmer
Mar 9, 2001
17
0
0
US
Hey,
How do i convert an ASCII code number to its string equivelent? For example:

my_var = 87
alert(convert(my_var)) <-- I want it to alert &quot;W&quot;

any help would be greatly appreciated!! thanks a lot!!

-Jason
 
Ah, young jedi, you seek the elusive static method of the String object:

str = String.fromCharCode(nASCII)

But alas, you have not mastered the technique. Use the force,as it is strong with you. Look within the static method and you will find that you may place as many nASCII arguments as you wish, young jedi. Just delimit them with commas:

str = String.fromCharCode(nASCII1,nASCII2,nASCIIn)

May the force be with you. jared@eae.net -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top