Strsum Function

Top  Previous  Next

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

 

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