srvdbedit TSRVDBEdit

<< Click to display table of contents >>

srvdbedit TSRVDBEdit

TSRVDBEdit represents a single-line edit control that can display and edit a field in a dataset.

Unit SRVDBEdit;

Syntax

TSRVEdit = class(TSRVEdit)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TSRVWinControl

TSRVEditControl

TCustomSRVEdit

TSRVEdit

Description

Use TSRVDBEdit to enable users to edit a database field. TSRVDBEdit uses the Text property to represent the contents of the field.

TSRVDBEdit permits only a single line of text. If the field may contain lengthy data that would require multiple lines, consider using a TSRVDBMemo object.

If the application does not require the data-aware capabilities of TSRVDBEdit, use an edit control (TSRVEdit) 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.

published ReadOnly

Boolean

False

Determines whether the user can change the value of the field.