Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# version of sys(2007)
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01603907
Message ID:
01604392
Views:
75
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.html

shows a bunch of the different CRC codes and it looks like the CRC16 implementation that matches:
? TRANSFORM(VAL(SYS(2007,"foo",0,1)),"@0") && CRC32
? TRANSFORM(VAL(SYS(2007,"foo",0,0)),"@0") && CRC16 (default)
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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform