<< Click to display table of contents >> TSRVDBText |
TSRVDBText represents a data-aware control that displays the value of a field in a document.
Unit SRVDBLabel;
Syntax
TSRVLabel = class(TSRVLabel);
TObject
TPersistent
TComponent
TControl
TGraphicControl
Use TSRVDBText to display the contents of a field in the current record of a dataset on a form. Field values displayed by database text controls cannot be modified by the user using the text control. To allow the user to edit the field value, use TSRVDBEdit or TSRVDBMemo instead.
If the application does not require the data-aware capabilities of TSRVDBText, use the label component (TSRVLabel) instead to conserve system resources.
New properties:
Property |
Type |
Default value |
Meaning |
---|---|---|---|
DataField |
String |
'' (empty string) |
Identifies the field from which the control displays data. |
DataSource |
TDataSource |
nil |
Links the control to a dataset. |
Field |
TField |
|
Returns the TField object whose current value the control represents. |