ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Mask functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Retrieves the postal code input mask adapted to a given country.
Example
// Utilise le masque du code postal espagnol sur le champ SAI_CodePostal
SAI_CodePostal.MasqueSaisie = MaskZipCode("ES")
Syntax
<Result> = MaskZipCode(<Country> [, <Option>])
<Result>: InputMask variable
InputMask variable that contains the characteristics of the postal code 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 postal code input mask must be retrieved. This parameter can correspond to:
  • The alphabetic or numeric ISO code of the desired country (for example, the alphabetic code of the Unites States is "US").
  • A variable of type Country.
If this country is empty or unknown, an exception is triggered.
<Option>: Optional integer
Management mode of control exit:
mzcFreeExit
(Default value)
Allows leaving the control even if the input mask is not checked.
mzcLockExitProhibits leaving the field until the value entered is valid (e.g. for the French zip code, 5 digits must be entered).

This parameter is taken into account only if the "Prevent from leaving control" option is selected in the "Details" tab of the control description window. If this option is not selected, the application is not blocked when the user leaves the control and no values are displayed.
Business / UI classification: Neutral code
Component: wd300obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/09/2025

Send a report | Local help