srvdbtext TSRVDBText

<< Click to display table of contents >>

srvdbtext TSRVDBText

TSRVDBText represents a data-aware control that displays the value of a field in a document.

Unit SRVDBLabel;

Syntax

TSRVLabel = class(TSRVLabel);

Hierarchy

TObject

TPersistent

TComponent

TControl

TGraphicControl

TCustomSRVGraphicControl

TSRVGraphicControl

TSRVLabel

Description

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.

Properties and events

New properties:

Property

Type

Default value

Meaning

published DataField

String

'' (empty string)

Identifies the field from which the control displays data.

published DataSource

TDataSource

nil

Links the control to a dataset.

none Field

TField

 

Returns the TField object whose current value the control represents.