Thema: Delphi ClientDataset Filtern

Einzelnen Beitrag anzeigen

mr2

Registriert seit: 3. Mai 2003
140 Beiträge
 
Delphi 2006 Enterprise
 
#9

Re: ClientDataset Filtern

  Alt 17. Mai 2008, 22:16
dann musst Du like verwenden:

Delphi-Quellcode:
database.ClientDataSet1.Filtered := False;
database.ClientDataSet1.Filter := Format('ausgabename like %s', [QuotedStr('%' + searchfield.Text + '%')]);
database.ClientDataSet1.Filtered := True;
mr2
"... we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we don't know. But there are also unknown unknowns - the ones we don't know we don't know."
  Mit Zitat antworten Zitat