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

Checksum X Function
Checksums Class

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

"Exclusive Or Checksum"
Generate a "checksum" by performing the Xor ("Exclusive Or") operation on each of the adjacent characters within a string.
Checksum is returned as a one-character string.
This is not really a "checksum" because that usually refers to sum of the ASCII values of the characters.

Examples:
    ChecksumX("A") = "A"
    ChecksumX("ABCD") = Chr$(4)
See also:
    ChecksumXFile Function
    Checksum8 Function
    Checksum16 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.

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