<< Click to display table of contents >> TSRVDBEdit |
TSRVDBEdit represents a single-line edit control that can display and edit a field in a dataset.
Unit SRVDBEdit;
Syntax
TSRVEdit = class(TSRVEdit)
TObject
TPersistent
TComponent
TControl
TWinControl
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.
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. |
ReadOnly |
Boolean |
False |
Determines whether the user can change the value of the field. |