ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Pivot Table control
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The property InputType property lets you know or modify the type of input allowed by a field: Duration, Date, Numeric, etc.
This property can be used in the following controls:
  • Edit control.
  • Table Column control.
  • Static Text control.
  • WINDEV Table column displayed by a Combo Box control.
  • WINDEV Combo Box control with input.
  • WINDEV Pivot Table control.
Note The type of a field is defined in the "General" tab of the field description.
Example
// Connaître le type du champ de saisie "SAI_Date"
IF SAI_Date.TypeSaisie = typInputDate THEN
	Message("Saisissez une date")
END
// Connaître le type du champ de saisie "SAI_Date"
IF SAI_Date.TypeSaisie = typInputDate THEN
	Message("Saisissez une date")
END
SAI_dynamique.TypeSaisie = SAI_DateHeure.TypeSaisie
SAI_dynamique.FormatMémorisé = "AAAAMMJJHHmmSSCCC"
SAI_dynamique.MasqueSaisie = SAI_DateHeure.MasqueSaisie 
SAI_dynamique = SAI_DateHeure
Syntax

Identifying the type of a control Hide the details

<Result> = <Control used>InputType
<Result>: Constant
Type of control. The possible values are:
typInputCurrencyMonetary type.
typInputDateType date.
typInputDurationType duration.
typInputNumNumeric type (integer, real, ...).
typInputTextText type.
typInputTimeTime type.
typS saisieNumériquePrécisNumeric type (for Edit controls associated with the Numeric type only).
<Control used>: Control name
Name of the control to be used.

Changing the type of a control Hide the details

<Control used>InputType = <New type>
<Control used>: Control name
Name of the control to be used.
<New type>: Constant
New type, the possible values are:
typInputCurrencyMonetary type.
typInputDateType date.
typInputDurationType duration.
typInputNumNumeric type (integer, real, ...).
typInputTextText type.
typInputTimeTime type.
typS saisieNumériquePrécisNumeric type (for Edit controls associated with the Numeric type only).
Remarks
WINDEV

Pivot Table control

To find out and modify the type displayed for a Pivot Table control value, use the following syntaxes:
{{"Value_Name"}}.InputType = typInputDuration
or:
Value_Name.InputType = typInputDuration
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help