ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Administrative number functions
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
Brazil.CheckCPF (Function)
In french: Brésil.VérifieCPF
Checks the validity of a CPF number (personal identification number in Brazil).
Example
// Check a variable
MyCPFNumber is string = "16650440396"
Brazil.CheckCPF(MyCPFNumber) // Returns True
 
// Check a control
EDT_CPFNumber = "ABC"
Brazil.CheckCPF(EDT_CPFNumber) // Returns False
// Check a variable
MyCPFNumber is string
MyResult is boolean
Input("Enter the CPF number: ", MyCPFNumber)
IF MyResult = False THEN
Info("Invalid CPF number")
END
Syntax
<Result> = Brazil.CheckCPF(<Number to check>)
<Result>: Boolean
  • True if the specified element contains a valid CPF number,
  • False otherwise.
<Number to check>: Control name or string variable
CPF number to check. This parameter can correspond to:
  • the name of a string variable.
  • the name of a control.
Component: wd290std.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/02/2022

Send a report | Local help