|
hello guys..i got a little problem, i really appreciate if you can help me
i got public variable Public errorData as byte() = { &H0, &H4e} 'it goes longer than this
i input hexa codes in the errorData and use binary writer to write TSB files..the problem is when it read alpha character
here is codes that produce error
Do While y <= 15 and strError(z).Substring(y - 1, 1) <> "" errorData(91 + y ) = Convert.ToByte(Hex(Asc(strError(z).Substring(y - 1, 1)))) If y = 15 Then errorData(91 + y +1) = &HD errorData(91 + y + 2) = &HA End If y += 1 Loop
if the Current SubString is "E"(for example) i get 45(which is correct) but if its in japanese "ハ" which should be CA i get an error which read
System.FormatException - input character type is incorrect
This post has been edited by larimore: 19 Mar, 2007 - 09:34 PM
|