Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006361 [JEDI VCL] 00 JVCL Components minor always 2014-11-22 00:40 2014-12-04 15:53
Reporter ricolebo View Status public  
Assigned To
Priority normal Resolution open  
Status acknowledged   Product Version 3.47
Summary 0006361: JvDBCombobox : Bug because search key is case insensitive
Description When the keyList are like this : kkk;KKK,KkK ... the comboBox can't work because the indeOf to find the key is case insensitive and so the seach found always the first value of the list.

This bug can be simply fixed, just set the TSTringList.caseSensitive to true

I attach a demo to show you the bug and how to fix it.
Additional Information The Fix : unit JvDBCombobox.pas

//=== { TJvCustomDBComboBox } ================================================

constructor TJvCustomDBComboBox.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  ControlStyle := ControlStyle + [csReplicatable];
  FDataLink := TFieldDataLink.Create;
  FDataLink.Control := Self;
  FDataLink.OnDataChange := DataChange;
  FDataLink.OnUpdateData := UpdateData;
  FDataLink.OnEditingChange := EditingChange;
  FPaintControl := TPaintControl.Create(Self, 'COMBOBOX');
  FBeepOnError := False;

  FListSettings := TJvDBComboBoxListSettings.Create(Self);
  FValues := TStringList.Create;
  FValues.CaseSensitive := True; // Fix
  FValues.OnChange := ValuesChanged;
  FEnableValues := True;
  Style := csDropDownList;
end;

Tags No tags attached.
Attached Files zip file icon TJvDBComboBox.zip [^] (19,369 bytes) 2014-11-22 00:40

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-11-22 00:40 ricolebo New Issue
2014-11-22 00:40 ricolebo File Added: TJvDBComboBox.zip
2014-12-04 15:53 obones Status new => acknowledged


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker