You've already forked lazarus-ccr
RxFPC:RxDBGrid - fix find dialog
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6918 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -120,15 +120,15 @@ var
|
||||
SearchOrigin:TRxSearchDirection;
|
||||
P:TBookMark;
|
||||
R:boolean;
|
||||
FC: TRxColumn;
|
||||
begin
|
||||
{ TODO -oalexs : Необходимо переделать поиск по колонке - искать всегда по строковому представлению. Иначе не ищет по дате-времени }
|
||||
if (Edit1.Text<>'') and (ComboBox1.ItemIndex>=0) and (ComboBox1.ItemIndex<ComboBox1.Items.Count) and (ComboBox1.Text<>'') then
|
||||
begin
|
||||
try
|
||||
|
||||
//FieldName:=FGrid.Columns[ComboBox1.ItemIndex].FieldName;
|
||||
//FieldName:=FGrid.ColumnByFieldName(ComboBox1.Text).FieldName;
|
||||
FieldName:=ComboBox1.Text;
|
||||
FC:=FGrid.ColumnByCaption(ComboBox1.Text);
|
||||
if not Assigned(FC) then Exit;
|
||||
FieldName:=FC.FieldName;
|
||||
LOptions:=[];
|
||||
if not CheckBox1.Checked then
|
||||
LOptions:=LOptions+[loCaseInsensitive];
|
||||
|
Reference in New Issue
Block a user