Quote:
> I have programmed different checksum characters in the past. Now some
> device wants a 2 character modula 10,000 checksum for serial
> communication.
> Can someone give me a hint how to calculate this ??
Is...
REM Initialize
' Blah etc.
DIM FirstChar AS STRING * 1,
SecondChar AS STRING * 1
' Blah etc.
CHK = ( ASC( FirstChar ) + 256 * ASC( SecondChar ) ) MOD 10000
...what you are after?
( you might need to swap the + and * signs... )
--
| web......: http://www.student.comp.brad.ac.uk/~crwhite