TDBDateTimeEditEh Class

TDBDateTimeEditEh represents a single-line date or time edit control that can display and edit a datetime field in a dataset or can works as non data-aware edit control.

TDBDateTimeEditEh = class(TCustomDBDateTimeEditEh);

Use TDBDateTimeEditEh to enable users to edit a internal date or time value or a database datetime field. If DataField and DataSource properties is not assigned then component works in not data-aware mode and store data in internal variable. 


TDBDateTimeEditEh build edit mask using ShortDateFormat variable. Edit mask can be by six types: three for four-char year - 'MM/DD/YYYY', 'DD/MM/YYYY', 'YYYY/MM/DD' and three for two-char year 'MM/DD/YY', 'DD/MM/YY', 'YY/MM/DD'. 


Application can use Text (String type) and Value (Variant type) properties to get and set datetime type value in TDBDateTimeEditEh. If TDBDateTimeEditEh is in data-aware mode then assigning to Text or Value automatically write data to associated field. If TDBDateTimeEditEh is in dtkDateEh kind then it will change only date part of the field. if TDBDateTimeEditEh is in dtkTimeEh kind then it will change only time part of the field. 


Value property can accept Null value or values in TDateTime, TDate, TTime, Double type. 


Use properties of EditButton object to adjust the edit button in right part of edit control. 


TDBDateTimeEditEh implements the generic behavior introduced in TCustomDBDateTimeEditEh. TDBDateTimeEditEh publishes many of the properties inherited from TCustomDBDateTimeEditEh, but does not introduce any new behavior. For specialized edit controls, use other descendant classes of TCustomDBDateTimeEditEh or derive from it.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!