ChewDoggie
Programmer
Hello All,
I have the following VB6 code Function that I'm converting to C#:
the line that says
How do recreate this line in c# ?
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.
I have the following VB6 code Function that I'm converting to C#:
Code:
Public Function ConvertString(SentString As String) As String
Dim i As Integer
Dim ckSum As Long
Dim bytSum As Byte
ckSum = 0
On Error Resume Next
For i = 1 To Len(SentString) ' compute the sum
ckSum = ckSum + Asc(Mid(SentString, i, 1))
Next i
bytSum = ckSum Mod 256 ' convert to a byte
bytSum = Not bytSum ' take one's complement
ConvertString = SentString & BinaryToHex(bytSum) ' Convert Byte to Hex
End Function
the line that says
Code:
bytSum = Not bytSum
How do recreate this line in c# ?
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.