TDBNumberEditEh Class

TDBNumberEditEh represents a single-line number edit control that can display and edit a numeric field in a dataset or can works as non data-aware edit control.

TDBNumberEditEh = class(TCustomDBNumberEditEh);

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


TDBNumberEditEh build display text from DisplayFormat property and show display text when control have not input focus. 


Application can use Text (String type) and Value (Variant type) properties to get and set numeric value in TDBNumberEditEh. If TDBNumberEditEh is in data-aware mode then assigning to Text or Value automatically write data to associated field. 


Value property can accept Null value or values in numeric types. 


Use properties of EditButton object to adjust the edit button in right part of edit control. When EditButton in UpDown style the control will work as spin edit. Use Increment property to specifies the value that is added or subtracted from Value when the user spins the control. 


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

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