DateTimeVarIn

Input/output for a date and/or a time.

Symbol

Menu ribbon

Start > Controls > Input/output > Variable input > DateTimeVarIn

The "DateTimeVarIn" control element is used to enter and output a time. The date, the time or both can be processed from the point in time. A process variable of type VT_DATE must be selected as the target specification.

Users can type the date and time directly into the input field or select them using a dialogue that is opened by clicking on the calendar symbol on the right-hand side of the control element.

DateTimeVarIn with input

Functionalities

The control element supports the following functionality:

You can configure these functionalities via the properties in the Properties window when you select the control in the Designer or in the document outline. Whether a property is visible in the properties window depends on the style of the control.

Style

By default, the control uses the "Plain.Default" style. Other system styles are available for the control in the "Style" property from the "General properties" category.

Certain properties may be missing in the Properties window for styled controls. For example, the "Colors" category is not available for controls in the system styles. These properties cannot be edited in the system styles.

You can also create your own styles for the control element. These styles are available for selection in the "Style" property after creation.

Structure

The control element consists of a number of other elements. Both the control itself and its elements can be configured via the properties of the control. Properties for a sub-element of the control can usually be found in the category that bears the name of this element.

Example: The properties for configuring the "Label" element can be found in the Properties window in the "Label" category when you select the control element in the Designer or in the document outline.

The DateTimeVarIn and its elements

Input field (Input, InputContainer, ...)

The DateTimeVarIn contains aninput field into which a date and time can be entered at runtime.

If the style of the DateTimeVarIn is reset, the following can be configured via the properties of the "Input" category:

The following illustration shows how the elements are structurally connected and which properties affect which element:

InputContainer and its elements

Related topics: