AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de cifrado/compresión
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
LuhnCalculate (Function)
In french: LuhnCalcule
Calculates the next Luhn check digit for a given sequence.
New in version 2024
IOS Widget This function is now available in iOS widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Mac Catalyst This function is now available in Catalyst mode.
Example
sNumberToCheck is string = "120 027 016 0056"
cCheckDigit is character = LuhnCalculate(sNumberToCheck)
Info("The check digit is [%cCheckDigit%]")
Syntax
<Result> = LuhnCalculate(<Identifier>)
<Result>: Character string
Luhn check digit for the given sequence
<Identifier>: Character string
Sequence from which the Luhn digit will be determined. This sequence must be composed of numbers and spaces only (spaces are not relevant for the formula).
Business / UI classification: Neutral code
Component: wd290std.dll
Versión mínima requerida
  • Versión 27
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/11/2023

Señalar un error o enviar una sugerencia | Ayuda local