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.
Caution: in WEBDEV, the custom masks are managed in read-only.
- advanced. Simply define the input mask using an InputMask variable. This type of variable allows a customized control on each event linked to input masks in an edit control.
- 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 can only be used in reports.