FWIW, it looks like this page shows all the different CRC formats available. If at all possible you should try to use SYS(2007) and use CRC32 as that's the most common type that you can easily find libs for.
This site:
http://www.lammertbies.nl/comm/info/crc-calculation.htmlshows a bunch of the different CRC codes and it looks like the CRC16 implementation that matches:
? TRANSFORM(VAL(SYS(2007,"foo",0,1)),"@0")
? TRANSFORM(VAL(SYS(2007,"foo",0,0)),"@0")
is: CRC-CCITT (0xFFFF) 0x630A
You can search for implementations in C#. Here's one:
http://sanity-free.org/133/crc_16_ccitt_in_csharp.html+++ Rick ---
>i'm doing some work in C# and need to have a working version of a method that correctly translates the sys(2007,"foo") to the same value in c# that it calculates using the built-in vfp method. does anyone have any ideas or code for sys(2007) in c#.
>
>here's the docs for the sys(2007) method in vfp
>
>
http://msdn.microsoft.com/en-us/library/csfkkhcy(v=vs.80).aspx