ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Input and display masks
  • Overview
  • Reminder
  • Default display masks
  • Preset masks
  • Custom input masks
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview

Reminder

WINDEV, WEBDEV and WINDEV Mobile propose two types of masks:
  • the input masks that define the characters that can be typed 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 programmatically.
  • the display masks that define the characters that can be:
    • WINDEV displayed in the window controls.
    • printed in the report controls.
Default display masks
By default, when creating a Time control:
  • the "Project-defined time" input mask is selected: the information defined in the time management parameters for the project is automatically taken into account. Reminder: These parameters are defined for each language in the "Languages" tab of the project description:
    1. On the "Project" tab, in the "Project" group, click "Description".
    2. Select the "Languages" tab then the "Time" tab.
    3. The format used corresponds to:
      • the settings of the operating system,
      • the specified parameters.
  • WINDEV the "Same mask as the input" display mask is selected.
Remarks:
  • In a report, when creating a preset Date control, the wizard allows you to select the display format of the control.
  • A list of preset masks is proposed in the description window of the control. You can:
    • select a preset mask.
    • create a custom mask.
Preset masks
The following masks are proposed (in the order in which they appear in the window editor, page editor or report editor):
  • 'HH:MM'
  • 'HH:MM:SS'
  • 'HH:MM:SS:CC'
  • HH:MM:SS AM': to manage time in AM/PM format.
  • the system time. The system time depends on the input mask selected in the regional system parameters ("Regional options" in the control panel).
Custom input masks
The following elements can be used to define a custom mask:
  • 'HH' (hour)
  • 'MM' (minutes)
  • 'SS' (seconds)
  • 'CC' (hundredths of a second)
These masks can be combined. For example: The mask 'It is HH Hour(s) MM Minute(s)' will give a result of the form "It is 10 Hour(s) 26 Minute(s)".
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/19/2024

Send a report | Local help