int i = (int)cString.ToCharArray(0,1)[0];Also, note ... I think you mean (0,1) rather than (1,1) ... remember, zero-based arrays.
>lnChar = asc( substring( cString, 1, 1 ) ) >>
>int lnChar = (int)cString.Substring( 1, 1 ) >>but I get an error 'Cannot convert type string to int'. Apparently, it must be type 'char' in order to cast it as an 'int'. The only problem is, 'Cannot convert type string to char' either. Anybody know what I need to do here? Thanks a lot,