ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Input and display masks
  • Overview
  • The masks
  • The different types of masks
  • Multilingual masks
  • The different types of available masks
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
Overview
WINDEV, WEBDEV and WINDEV Mobile propose two types of masks:
  • the input masks that define the characters that can be typed and/or displayed in the controls found in a window or in a page. Sometimes, these masks can also be used to modify the case (uppercase/lowercase characters) of the values assigned to the window controls or to the page controls by programming.
  • the display masks that define the characters that can be printed in the controls found in a report.
The masks

The different types of masks

Regardless of the type of mask, a mask can be:
  • preset. The editor proposes different types of masks according to the content of the control (text, numeric, ...).
  • custom. All you have to do is enter the mask to apply. For example, "CCC9 LL 9A" for a text control or "DDD DD MMMM YYYY" for a date control. A regular expression can also be defined with the InputMask property.
  • notfound. No mask is associated with the control. No check is performed in this case.
For the Numeric, Currency, Date, Time and Duration controls, the mask can also be "Defined by the project". In this case, the linguistic characteristics defined in the "Language" tab of the project description are automatically taken into account according to the runtime language of the application.
The linguistic options selected by default are the ones of Windows.
For each type of numeric data, you have the ability to define the parameters that will be applied (decimal separator, thousand separator, currency symbol, time format, AM or PM symbol, ...).
Remark: This option allows you to automatically use the same configuration of the multilingual feature in all the numeric controls of the application. The management of the multilingual formats is centralized in the project description.
The input/display mask of a control can be set in the its description window ("General" or "Details" tab), or programmatically (using the InputMask property).

Multilingual masks

For a multilingual project, a different mask can be selected for each language supported by the window (page or report). The corresponding mask will be used according to the runtime language of the project.

The different types of available masks

To find out the different types of available masks (preset masks or preset masks), see:
Related Examples:
Advanced input mask Unit examples (WINDEV): Advanced input mask
[ + ] Handling the input masks in WINDEV:
- Defining the format of positive/negative number in a numeric edit control
- Defining how negative numbers will be displayed in a numeric edit control
- Defining how the value 0 will be displayed in a numeric edit control
- Using a regular expression to prevent from typing characters other than 1, 2, 3, 4, 5 and 6.
- Using a regular expression to "regulate" the input of a French registration number
Minimum version required
  • Version 9
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: 06/22/2023

Send a report | Local help