Craig's CRC function has a 2nd parameter for 16-bit or 32-bit. From his help page: ----------------------------------- The CRC that is returned is unsigned, which means that the returned 16-bit CRC needs to be treated as a 4 Byte numeric value and the 32-bit CRC as a 8 byte numeric value in Visual FoxPro. The operation of the CRC() function presented here is quite similar to Visual FoxPro's Sys(2007) function, however you will find that creation of 32-bit CRCs is much faster using this function. -----------------------------------
However, when I run some tests, the resulting number is a 10-digit numeric. Perhaps I'm mixing units here, but isn't that beyond 8-byte? I mean, I've dealt with packed decimals years ago in Assembler, but when he says "8-byte numeric", isn't he meaning a type of n(8) ? Specifically, I'm looking to use the CRCRECORD function to get a checksum for the entire record, for later comparison to a sort of backup database to pull records that are new or have effectively changed from the real database down to the backup (and I don't want to pull unchanged records). I've got a field called "updated" which is a datetime but I wanted to use CRCRECORD for what is probably the "more correct" approach. tia, --Mike -- Mike Babcock, MCP MB Software Solutions, LLC President, Chief Software Architect http://mbsoftwaresolutions.com http://fabmate.com http://twitter.com/mbabcock16 _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

