SYS(2007) Algorithm for Checksum

ID: Q101289

The information in this article applies to:

The SYS(2007) function returns the checksum value of the character expression <expC>. The correct syntax is SYS(2007,<expC>). A checksum can be used to test the validity of data or to compare two character expressions.

NOTE: Checksum is a "byte-oriented CRC-16" algorithm. The exact logic was last published in the February 1986 edition of "Dr. Dobbs Journal."

Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b check sum KBCategory: kbprg KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995