كيف يتم الاستعلام ADOQuery1 بواسطة CheckListBox1
#13
جرب الاجراء التالى

PHP كود :
function Filter(FieldName: string; chklst: TCheckListBox): string;
var
  
i: Integer;
  
s: string;
begin
  FieldName 
:= FieldName + ' = ';
  for 
I := 0 to chklst.Items.Count -1 do
  
begin
    
if chklst.Checked[i] then
    begin
      s 
:= FieldName + QuotedStr(chklst.Items[i]) + ' or ';
      
Result := Result + s;
    
end;
  
end;
  
SetLength(Result, Length(Result) - 4);
end; 

PHP كود :
TABLE.Filter := Filter('NOM', chklst1);
 
TABLE.Filtered := True; 
الرد


الردود في هذا الموضوع
كيف يتم الاستعلام ADOQuery1 بواسطة CheckListBox1 - بواسطة hanipino - 05-06-2012, 07:33 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم