Calculates a checksum for a string that contains a number.

CheckNumber :=STRCHECKSUM(String[, WeightString][, Modulus])

Parameters

String

Type: Text constant or code

This string contains the number for which you want to calculate a checksum. You can only enter the numeric characters 0-9 in this string. If you entering anything else, a run-time error will occur. If String is empty, 0 is returned.

WeightString

Type: Text constant or code

This string contains numbers that you want to use as weights when calculating the checksum. The default value is a string containing STRLEN(String) '1'-characters.

You can only enter the numeric characters 0-9 in this string. If you enter anything else, a run-time error will occur.

If String is longer than WeightString, a string will be concatenated that contains STRLEN(String) - STRLEN(WeightString) '1'-characters to the end of WeightString. If WeightString is longer than String, a run-time error occurs.

Modulus

Type: Integer

The number that you want to use in the checksum formula. The default value is 10.

Expand imageProperty Value/Return Value

Expand imageExample

Expand imageSee Also