Calculates the check digit for a Prefix and Id and returns the resultant Id.

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

Syntax

finAccountFunctions.CheckDigitCalculateWithPrefix(id, checkDigitMethod, prefix, [length])

Parameters

NameTypeOptionalByRefDescription
id String
checkDigitMethod isefinCheckDigitMethod The method used to calculate the Check Digit
prefix String The prefix to add.
length Integer Optional Length of Id INCLUDING the prefix and 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