Have you looked SYS(2007).
Sys(2017) displays sign on screen in FPW and is used fro chcksum in VFP. So much for the backward compatibility :)
AT
>>>Alex,
>>>
>>>You could use sys( 2017 ) to calculate a 16 bit checksum. I believe this will work in FPW 2.6 on up. To make your checksum more unique, you could add the number of chars in your password to the checksum and/or number of vowels, etc.
>>
>>I was using sys(2017) of the string, plus sys(2017) of some predefined string of mine prepended to that string... something like this:
>>
>>
function ckVal(c)
>>ckVal=sys(2017,c)+"-"+sys(2017, "mystring"+c)
>>return ckval
>
>I did something along those lines since it has to work for FoxPro DOS 2.6 as well as VFP.
>
>Thanks.
>
>Alex