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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vfp sys(2007) in Vb

Status
Not open for further replies.

nevin2007

Programmer
Aug 21, 2009
31
IR
hi
I dont know this thread must be here or in vb forum.
Can anyone guide me to write a VB code that return same value as sys(2007) function in VFP with same input string?
I want a function that calculate not a Object that use VFP Command like :
Dim oFox AS VisualFoxPro.Application
 
I had to look that up.

Sys(2007) calculates a checksum - which is presumably standard - so I would follow this thread:


and see where it takes you.

This is probably a VB question really.

Good luck

Martin

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
There are different checksum algorithms. You may have a chance to find the algorithm used in sys(2007) - and it is two algorithms, one for CRC16 and the other CRC32.

If having the same result is not a must, then in VB it is simply:

"The String".GetHashCode()

Cetin Basoz
MS Foxpro MVP, MCP
 
Also check HashAlgorithm.ComputeHash

Cetin Basoz
MS Foxpro MVP, MCP
 
thanks for your reply.
non on this answer [blue]return same value as sys(2007) function in VFP [/blue]
I test sys(2007) both 16 and 32 but result are different from VB
checksum and hash.
Where i can find the base formula structure of sys(2007)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top