String cString; Char mychar; mychar=(char)149; cString = mychar.ToString() + "ABC"; int lnChar = (int)Char.Parse(cString.Substring( 0, 1 ));>I'm having a problem with some ascii codes here and I can't figure it out. It would be great if someone could help me. Anyway, in VFP:
>?chr( asc(chr(149)) >>displays some weird symbol, but a symbol I need.
>int nAscVal = (int)Char.Parse( cString.Substring( 0, 1 ) ) >>
>int pintAsc = (new ASCIIEncoding()).GetBytes(new char[]{Char.Parse( cString.Substring( 0, 1 ))})[0]; >>but no matter what character I select with the substring, it always returns a value of 63 to pintAsc. I'm lost on this one, anyone got any clues? Thanks,