increment of value of a char variable????
-
hi i want to know how can i increment a variable that contain a character for example i have a variable(fchar) that contain a 'c' and i want to show previouse and next character of this variable value. what is that function? thank you
nobody help you... you have to help you yourself and this is success way.
-
hi i want to know how can i increment a variable that contain a character for example i have a variable(fchar) that contain a 'c' and i want to show previouse and next character of this variable value. what is that function? thank you
nobody help you... you have to help you yourself and this is success way.
-
sorry but i forgotten to say that i want to do this with javascript
nobody help you... you have to help you yourself and this is success way.
Try this following function, function GetAscii(c) { var car = c; for(i=0;i<256;i++) { if(String.fromCharCode(i) == car) { if(i == 97) { alert(String.fromCharCode(i+1)); } else { alert(String.fromCharCode(i-1)+','+String.fromCharCode(i+1)); } } } } This fucntion used to get pre and post characters of passing char.
smile :-)