ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Encryption/compression functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
LuhnCheck (Function)
In french: LuhnVérifier
Checks that the given sequence is valid according to the Luhn formula.
New in version 2025
WEBDEV - Browser code This function is now available in browser code.
Example
sIDNumber is string = EDT_IDNum
IF LuhnCheck(sIDNumber) THEN
Info("Valid number")
ELSE
Info("Invalid number")
END
Syntax
<Result> = LuhnCheck(<Identifier>)
<Result>: Boolean
  • True if the sequence is valid according to the Luhn formula,
  • False otherwise.
<Identifier>: Character string
Sequence composed of numbers and spaces only (spaces are not relevant for the formula).
Business / UI classification: Neutral code
Component: wd300std.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/18/2024

Send a report | Local help