The DBText component is a data-aware version of the standard Label control and is used to display the contents of a dataset field when they will not be edited. By its nature, the representation of the data is read-only, making this control an excellent choice for displaying the data with a high degree of security, A common use for DBText is to display a key value, such as a customer account number or ID, items that cannot be modified without disrupting the relational integrity of the database.
The control is simple to implement; set the DataSource and DataField properties and it is activated. The text of the control is derived from the specified field but unlike the Label or StaticText components, it cannot be set at design or run time.
Chapter 6—Delphi's Data-Aware Components
Was this article helpful?