PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves the phone number input mask adapted to a given country.
Versions 26 and later
Linux This function is now available for WINDEV applications in Linux.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 26
Linux This function is now available for WINDEV applications in Linux.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux This function is now available for WINDEV applications in Linux.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Use Spain phone mask on EDT_Phone
EDT_Phone.InputMask = MaskPhoneNumber("ES")
Syntax
<Result> = MaskPhoneNumber(<Country> [, <Option>])
<Result>: InputMask variable
InputMask variable that contains the characteristics of the phone number input mask for the specified country. This result can be directly assigned to the InputMask property.
<Country>: Character string (with quotes) or Country variable
Country for which the phone number input mask must be retrieved. This parameter can correspond to:
  • The alphabetic or numeric ISO code of the desired country.
  • An Variable type Country.
<Option>: Optional Integer constant
Phone number characteristics:
mphoneWithOrWithoutPrefix
(Default value)
Phone number with or without international prefix.
mphoneForcePrefixPhone number with international prefix.
Example: +33 4 67 03 20 32.
mphoneWithoutPrefixPhone number without international prefix.
Example: 04 67 03 20 32.
Business / UI classification: Neutral code
Component: wd260obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Exemplo
https://repository.windev.com/resource.awp?file_id=281474976711152;valida-cpf-cnpj-telefone-com-mascara-validacao-com-expressao-regular
Boller
12 Jul. 2021