Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>asciisum()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson