• Overview
  • The masks
  • The different types of masks
  • Multilingual masks
  • The different types of available masks
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

WinDev, WebDev and WinDev Mobile propose two types of masks:
  • input masks, which define the characters that can be entered 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 provided by the ..输入掩码 property
  • notfound. No mask is associated with the control. No check is performed in this case.
For 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, ...).

Note: 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 display/input mask of a control is defined in the description window of the control ("General" tab or "Details" tab) or by programming (..输入掩码).

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.

See Multilingual feature in the controls of a window, a page and a report for more details.

The different types of available masks

To find out the different types of available masks (preset masks or preset masks), see: