Vcl.DBCtrls.TCustomDBLookupComboBox.CloseUp
Delphi
procedure CloseUp(Accept: Boolean); virtual;
C++
virtual void __fastcall CloseUp(bool Accept);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TCustomDBLookupComboBox |
Description
Closes an opened or "dropped-down" list.
Call CloseUp to programmatically close the list of the lookup combo box. The Accept parameter determines whether to modify the field value with the value that corresponds to the selected value in the lookup list.
For a TDBLookupComboBox, the code should look like this:
DBLookupComboBox1.CloseUp(True);
DBLookupComboBox1->CloseUp(true);