srvdblistbox TSRVDBListBox

<< Click to display table of contents >>

srvdblistbox TSRVDBListBox

TSRVDBListBox represents a data-aware list box that allows users to change field values by selecting an item from a list.

Unit SRVDBListBox;

Syntax

TSRVListBox = class(TSRVListBox)

Hierarchy

TObject

TPersistent

TComponent

TControl

TWinControl

TSRVWinControl

TSRVCustomListBox

TSRVListBox

Description

Use TSRVDBListBox to add a list box to a document that permits users to change the value of a field on the current record to one of a fixed set of choices.

If the application doesn't require the data-aware capabilities of TSRVDBListBox, use a list box (TSRVListBox) 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.