Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CRC and the use of SYS(2007)
Message
 
 
À
10/06/2008 00:07:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01322727
Message ID:
01322778
Vues:
15
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform