G
guoqi zheng
Dear sir,
I am writting a binary newsgroup yEnc file decoder, I need to change
character back to a byte. When I am doing this, I always get an error of:
"Arithmetic operation resulted in an overflow."
I did a little test code with the ASC function, I got exactly the same error.
See my code example below.
Any one know what I am doing wrong with the ASC function here?
Dim ary As New ArrayList
Dim i As Integer
For i = 0 To 255
Dim bc As String = Chr(i)
Dim bytevalue As Byte = Asc(bc)
ary.Add(bytevalue)
Next
Me.ListBox1.DataSource = ary
Regards,
Guoqi Zheng
http://www.ureader.com
I am writting a binary newsgroup yEnc file decoder, I need to change
character back to a byte. When I am doing this, I always get an error of:
"Arithmetic operation resulted in an overflow."
I did a little test code with the ASC function, I got exactly the same error.
See my code example below.
Any one know what I am doing wrong with the ASC function here?
Dim ary As New ArrayList
Dim i As Integer
For i = 0 To 255
Dim bc As String = Chr(i)
Dim bytevalue As Byte = Asc(bc)
ary.Add(bytevalue)
Next
Me.ListBox1.DataSource = ary
Regards,
Guoqi Zheng
http://www.ureader.com