05-06-2012, 07:33 PM
جرب الاجراء التالى
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;

