Calculates the check digit for an Id and returns the resultant Id.

If Id contains non-numeric digits or Len(Id)>=length a blank string will be returned.

Syntax

finAccountFunctions.CheckDigitCalculate(id, checkDigitMethod, [length])

Parameters

NameTypeOptionalByRefDescription
id String
checkDigitMethod isefinCheckDigitMethod The method used to calculate the Check Digit
length Integer Optional Length of Id INCLUDING the check digit. Maximum supported length is 20 digits. If omitted, a value of 0 is assumed.

Return Value

String

A String value.

Member of:
finAccountFunctions
Namespace:
Intersoft.finSupport6
Assembly:
finSupport6, Version=6.0.3
Target Framework:
.NET 9.0