Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRC and the use of SYS(2007)
Message
 
 
To
10/06/2008 00:07:28
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01322727
Message ID:
01322778
Views:
14
>When using SYS(2007), we can obtain a CRC of an image file. The class I have built in .NET uses the polynomial approach which is what PkZip uses. When running both, I obtain the same number. Does this mean VFP also uses that same algorythm?

I believe so. According to http://www.geocities.com/SiliconValley/Pines/8659/crc.htm CRC-32 for string "123456789" should be CBF43926.
? TRANSFORM(VAL(SYS(2007, "123456789",0,1)), "@0")             && CBF43926. 
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform