>>(1) CRC32VFP()
>>Is the part of the filename a val(crc32) from vfp? Then it will be unsigned. So, have your .net class return a UInteger and interprete the part of the filename as UInteger
>>
>>That way, you can compare UInteger and UInteger types
>
>CRC32VFP is a proposed name of a class I would have to use to obtain the equivalent of what VFP does. After more research, it turns out that the way they do it is like this:
>
>
>lcCRC32 = SYS(2007, lcFileData, 0, 1)
>
>
>So, I am not sure I can get an equivalent of that in .NET.
>
>Is that Polynomal PKZip CRC complaint BTW? If yes, with that, they never get negative values.
(1)> Is that Polynomal PKZip CRC complaint BTW?
I don't know whether it's pkzip compliant. Should be tested. But a CRC is a CRC, so I expect both use the same algorithm
(2) > If yes, with that, they never get negative values.
It's just a matter of interpreting the 32 bits. It's a hex value. Is 0xFFFFFFFF in decimal 4,294,967,295 or -1
(3) If you leave your class as is, add a method crc32vfp() or crc32Unsigned()
Use your existing method which returns Integer, convert Integer to UInteger and return that
Gregory