TCustomComboBox.Clear procedure
Removes all items from the list, and clears the edit box.
Declaration
procedure Clear; virtualDescription
Clear is a procedure used to remove all values stored in the
Items property for the control. Clear calls the Clear method in
Items to removed the strings and any associated objects stored in the
TStrings property. Clear sets the value in
Text to an
empty string (
'') which forces the value in ItemIndex to be changed
to
-1.
Use the Clear method in Items to remove all of the values stored in Items but keep the current value in Text.
Use ClearSelection to reset the value in ItemIndex and de-select the selected value in Items.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
