PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 given by ..InputMask
    WEBDEV - Server code Caution: in WEBDEV, the custom masks are managed in read-only.
  • 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, ...).
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 (..InputMask).
WEBDEV - Server code ..InputMask can only be used in reports.

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