ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Administrative number functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Checks the validity of a Canadian tax number.
Note: The tax number corresponds to the SIN for individuals and the NE9 for businesses.
Example
// Test d'une variable 
MonNuméroFiscal is string = "046454286"
Canada.CheckTaxNumber(MonNuméroFiscal) // renvoie Vrai
 
// Test d'un champ 
SAI_NuméroFiscal = "ABC"
Canada.CheckTaxNumber(SAI_NuméroFiscal) // renvoie Faux
Syntax
<Result> = Canada.CheckTaxNumber(<Number to check>)
<Result>: Boolean
  • True if the specified element contains a valid tax number.
  • False otherwise.
<Number to check>: Control name or string variable
Tax number to check. This parameter can correspond to:
  • the name of a string variable.
  • the name of a control.
Component: wd300std.dll
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help