ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Mask 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
Retrieves the phone number input mask adapted to a given country.
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>: String 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.
  • A variable of type Country.
<Option>: Optional Integer constant
Phone number characteristics:
mphoneForcePrefixPhone number with international prefix.
Example: +33 4 67 03 20 32.
mphoneWithOrWithoutPrefix
(Default value)
Phone number with or without international prefix.
mphoneWithoutPrefixPhone number without international prefix.
Example: 04 67 03 20 32.
Business / UI classification: Neutral code
Component: wd290obj.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

Last update: 05/26/2022

Send a report | Local help