Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRC Checker in VFP

Status
Not open for further replies.

PaulBarbeau

Programmer
Nov 23, 2000
109
CA
I am looking a creating an application that will validate a download file with a CRC. Does anyone know how i can geterate a CRC on a file from inside VFP?

Thanks
Paul
 
check SYS(2007) in vfp help
Returns the checksum value of a character expression



Attitude is Everything
 
Thanks for the help

What i did was load the file into a varable called lcFileData and then use sys(2007,lcFileData) and got a value however this does not match what i know the value is

sys return 34321
real crc is 0f9d8527

Did i do something wrong? Any other ideas?
 
What i am trying to do is create File 32-bit Cyclical Redundancy Check (CRC)
 
Paul,
SYS(2007) is a 16-bit Checksum calculation.
I have a written a CRC16 routine in FoxPro code, if you need one of these. I haven't needed the full 32-bit one, yet.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top