Heres a function that will return the ascii values of each character in a
string, seperated by comma's
Adpapt at will:
private string ToASCIIIntInString(string instr)
{
char[] chars = instr.ToCharArray();
string[] asciis = new string[chars.Length];
int charCount = chars.Length;
for(int x;x<charCount;x++)
{
asciis[x] = ((int)chars[x]).ToString();
}
return string.Join(asciis, ", ");
}
HTH
Ciaran O'Donnell
"moni" wrote:
>
Actually, need to convert X to 88
and then back to string to display on a textbox.
Thanks..
moni wrote:
I need to convert X to 88,
Can some1 tell me.
Thanks...