sysLib.verifyChkDigitMod10( text CHAR | NUM in, checkLength INT in, result SMALLINT inOut)
The following example shows a check digit in an account number.
program VerifyDigit10 type BasicProgram acctNo CHAR(10) = "1734289"; // 9 is check digit len SMALLINT = 7; result SMALLINT = 0; function main() sysLib.verifyChkDigitMod10 (acctNo, len, result); if (result != 0) sysLib.writeStdout("Check digit not correct"); end end // main end // program
For more information about the algorithm used to calculate the value of the check digit, see calculateChkDigitMod10().
Platform | Issue |
---|---|
JavaScript generation | The function sysLib.verifyChkDigitMod10() is not supported. |