[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ASCIISUM()
Finds the sum of the ASCII values of all the characters of a string
------------------------------------------------------------------------------
Syntax
ASCIISUM(<cString>) --> nASCIISum
Argument
<cString> Designates the character string for which the sum of all
the ASCII values is computed.
Returns
ASCIISUM() returns a number that corresponds to the sum of the ASCII
codes of all the characters in <cString>.
Description
ASCIISUM() allows you to form simple checksums for character strings.
For example, this can be implemented during remote data transmission to
identify transmission errors.
Note
. This function does not take character position into account,
so it cannot determine a character transposition. The CHECKSUM()
function should be used to determine character transposition.
Examples
. Transposed characters yield identical results:
? ASCIISUM("abc") // Result: 294
? ASCIISUM("cba") // Result: 294
. A null string returns 0:
? ASCIISUM("") // Result: 0
See Also:
CHECKSUM()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson