DateOnError Property

Applies to TestComplete 15.20, last modified on January 19, 2022

Specifies which date is used in the case an of invalid input.

Declaration

componentPropObj.DateOnError
Read-Write Property String
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxDateEditProperties

Description

The DateOnError property specifies the behavior of the TcxDateEdit component when the user tries to assign an incorrect date value to it.

Property Value

One of the following string values:

Value Description
deNoChange The previous component’s EditValue is not changed.
deToday The component’s EditValue is set to current day.
deNull The component’s EditValue is set to an empty value (Nothing in VBScript, null in JavaScript, JScript, C++Script and C#Script, None in Python, and nil in DelphiScript) and the Date property is set to -700000.

The default value of DateOnError is “deNoChange”.

See Also

Date Property
EditValue Property

Highlight search results