ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The InputType property is used to identify or change the type of input supported by a control: Duration, Date, Numeric, etc.
This property can be used in the following controls:
  • Edit control.
  • Column of a Table control.
  • Static control.
Remark: The type of a control is defined in the "General" tab of the control description.
Example
// Identify the type of the "EDT_Date" edit control
IF EDT_Date.InputType = typInputDate THEN
Message("Enter a date")
END
// Identify the type of the "EDT_Date" edit control
IF EDT_Date.InputType = typInputDate THEN
Message("Enter a date")
END
EDT_dynamic.InputType = EDT_DateTime.InputType
EDT_dynamic.MemoryFormat = "YYYYMMDDHHmmSSCCC"
EDT_dynamic.InputMask = EDT_DateTime.InputMask
EDT_dynamic = EDT_DateTime
Syntax

Identifying the type of a control Hide the details

<Result> = <Control used>.InputType
<Result>: Constant
Type of control. The possible values are:
typInputCurrencyCurrency type.
typInputDateDate type.
typInputDurationDuration type.
typInputNumNumeric type (integer, real, ...).
typInputNumericPreciseNumeric type (for Edit controls associated with the Numeric type only).
typInputTextText type.
typInputTimeTime type.
<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:
typInputCurrencyCurrency type.
typInputDateDate type.
typInputDurationDuration type.
typInputNumNumeric type (integer, real, ...).
typInputNumericPreciseNumeric type (for Edit controls associated with the Numeric type only).
typInputTextText type.
typInputTimeTime type.
Remarks
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/08/2024

Send a report | Local help