AutoCorrectHours Property

Applies to TestComplete 14.10, last modified on June 5, 2019

Specifies whether the invalid hour portion value is automatically corrected.

Declaration

componentPropObj.AutoCorrectHours
Read-Write Property Boolean
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxTimeEditProperties

Description

Use the AutoCorrectHours property to enable or disable automatic value correction. A value entered in the hour portion that is not in the [0 - 23] or [0 - 12] range (depending on the Use24HourFormat property) is treated as an incorrect value. If this property is True, it is replaced with the maximum possible value for the current value range. Otherwise, the incorrect value is ignored.

Property Value

True, if the automatic correction of hour portion is enabled; False otherwise.

See Also

Use24HourFormat Property

Highlight search results