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 zip code input mask adapted to a given country.
Example
// Use Spain postal code mask on EDT_ZipCode
EDT_ZipCode.InputMask = MaskZipCode("ES")
Syntax
<Result> = MaskZipCode(<Country> [, <Option>])
<Result>: InputMask variable
InputMask variable that contains the characteristics of the zip 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 zip code input mask must be retrieved. This parameter can be:
  • 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.
mzcLockExitPrevents users from leaving the control until the value entered is valid (e.g., 5 digits for postal codes in France).

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: wd290obj.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/02/2023

Send a report | Local help