strsum Function

Function:

Calculates 16-bit (word) sum of ASCII codes of all characters in a string.

Syntax:

strsum(byref sourcestr as string) as word

See Also:

---


Part

Description

sourcestr

String to work on


Details

This function is useful for checksum calculation.


Examples

Tibbo BASIC
w = strsum("012")  ' will return 147 (48+49+50).

strsum Function

Details

Examples