Public Function DecodeId(ByVal mmId) As String Dim DVal As String Dim I As Integer On Error Resume Next If mmId.ToString.Length < 10 Then mmId = mmId.ToString.PadRight(10) DVal = "" For I = 1 To mmId.ToString.Length DVal = DVal & Chr(Asc(Mid(mmId, I, 1)) + 58) Next DecodeId = DVal End Function c# public string DecodeId(string mmId) { string DVal = string.Empty ; int I = 0; for (I = 0; I <= mmId.Length-1; I++) { char c = (char)(System.Convert.ToInt32(mmId[I]) + 58); //int x = (System.Convert.ToInt32(mmId[I]) + 58); // char nw = (Char)x; // string s = char.ConvertFromUtf32(x).ToString(); DVal = DVal + s.ToString(); } return DVal; } Please reply if there is any difference in ascii values according o.s or prgmng languages etc (the ascii value for 155 is '>' but from my c# code it gives '""'). Please reply Thanks
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)