I am trying to convert the following code to Basic4PPC:
I would appreciate any help.
Sub CommandButton1_Click
Dim username, ch,checksum,iCount,
username = owner.text
For iCount=1 To Len(username) 'encipher the entered number
ch= Mid(username,iCount,1)
checksum = Asc(ch)
Next
checksum = 34296 + checksum * 3
While (checksum > 65535)
checksum = checksum - 65536
Wend
While (checksum < 0)
checksum = checksum + 65536
Wend
code.text = checksum
End Sub
Amit:sign0085:
I would appreciate any help.
Sub CommandButton1_Click
Dim username, ch,checksum,iCount,
username = owner.text
For iCount=1 To Len(username) 'encipher the entered number
ch= Mid(username,iCount,1)
checksum = Asc(ch)
Next
checksum = 34296 + checksum * 3
While (checksum > 65535)
checksum = checksum - 65536
Wend
While (checksum < 0)
checksum = checksum + 65536
Wend
code.text = checksum
End Sub
Amit:sign0085: