procedure TfmBaseFilter.sbClearClick(Sender: TObject); var ComSum: integer; begin inherited; for ComSum := 0 to ComponentCount - 1 do begin if Components[ComSum] is TComboBox then (Components[ComSum] as TComboBox).Text := ''; if Components[ComSum] is TEdit then (Components[ComSum] as TEdit).Text := ''; if Components[ComSum] is TListBox then (Components[ComSum] as TListBox).Items.Clear; end; end;