<-- Previous || Up || Next -->

Checksum 32 Function
Checksums Class

Public Function Checksum32( _
    ByVal vValue As Variant _
    ) As Variant

"32-bit Checksum"
Generate the 32-bit checksum for the characters in string vValue.
The checksum is the sum of the ASCII values of all of the characters within the string.
Checksum is returned as a Long (Integer) value.

    Checksum32("A") = 65
    Checksum32("ABCD") = 266
    Checksum32("This is a test.") = 1315
See also:
    Checksum32File Function
    CRC32String Function
    Checksum16 Function
    Checksum8 Function
vValue: String containing the characters whose ASCII values are to be added together. Function returns Null if vValue is Null or cannot be fixed up to a String.

Note: Function currently only works for characters whose ASCII value is between 0 and 255, so it does NOT support UNICODE.
Note: Checksum32 returns a Long (Integer) value. while Checksum32File returns a Double (precision floating-point) value that happens to be a non-negative integer.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.