SelectedItem Property (TDBCombo)
This property returns or sets the bookmark identifying the selected item in a control.
object.SelectedItem= variant
Read/Write at run time. Not available at design time.
Property applies to TDBList and TDBCombo controls.
Use the value returned by the SelectedItem property to determine the current row in a TDBList or TDBCombo control.
When you set the SelectedItem property to a valid value in code, the row associated with that value becomes the current row, and the drop-down control adjusts its display to bring the new current row into view if necessary.
The SelectedItem property is defined as a Variant to accommodate user-defined bookmarks in unbound mode.
Note: For the TDBCombo control, the SelectedItem and Bookmark properties are synonymous.
See Also