Re: TADODataset.Filter?
- From: "Sven Pran" <no.direct@xxxxxxxxxxx>
- Date: Sat, 21 Oct 2006 20:44:27 +0200
"Bill Dekleris" <quasar@xxxxxx> wrote in message
news:453a4e00@xxxxxxxxxxxxxxxxxxxxxxxxx
Oops! I forgot to quote the search string! The correct syntax would be:
// name starts from "bi"
ADOQuery1.Filter := 'name Like ' + QuotedStr('bi*');
// name contains "bi"
ADOQuery1.Filter := 'name Like ' + QuotedStr('*bi*');
Sorry for the error!
Bill.
No problem, and thanks for the clarification.
I did try the LIKE operator as in SQL statements but
I believe I tried using the percent sign as wildcard
(also as in SQL syntax). And as 'LIKE' is not
mentioned in the documentation for 'filter', not even
where partial string filtering is concerned I didn't
recognize the possibility that it was applicable
after all.
Anyway, with the deficient documentation in the
current Delphi online help there are comments
like yours that give me progress in understanding
the new features in Delphi.
I have only recently begun trying out ADO and am
most grateful for all the help I receive here. (My
experience with Delphi/Pascal as such goes back
to TP version 3 around 1985!)
regards Sven
.
- References:
- TADODataset.Filter?
- From: Sven Pran
- Re: TADODataset.Filter?
- From: Bill Todd
- Re: TADODataset.Filter?
- From: Sven Pran
- Re: TADODataset.Filter?
- From: Bill Todd
- Re: TADODataset.Filter?
- From: Sven Pran
- Re: TADODataset.Filter?
- From: Bill Dekleris
- Re: TADODataset.Filter?
- From: Bill Dekleris
- TADODataset.Filter?
- Prev by Date: Re: TADODataset.Filter?
- Next by Date: Win98 Locks Access Database
- Previous by thread: Re: TADODataset.Filter?
- Next by thread: Re: TADODataset.Filter?
- Index(es):
Relevant Pages
|