...

View Full Version : integer to char



leeban99
01-29-2006, 10:21 AM
plz tell how can i convert an integer value into related character. is there any function for it? plz tell.

Philip M
01-29-2006, 10:26 AM
Not sure what you mean by "related character". Do you mean change 1 to A, 2 to B, 3 to C and so forth up to 26 = Z?

If so you want to make an array with corresponding numerals/letters.

liorean
01-29-2006, 10:36 AM
var
nA=65,
sA=String.fromCharCode(nA);
alert(sA); // ==> 'A'



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum