Board index » delphi » find a substring with the Filter method

find a substring with the Filter method

Hello everybody,

in one of the Delphi-Help-Files I red that I can use placeholders (or
spaceholders, I mean a *) to filter a string ( it should be like the
LIKE keyword in SQL ) .

I tried that with the Filter method  (e.g. Query1.Filter), but it seems
only to work if I key in the whole string without any placeholders .

Do I use the wrong placeholder ?

Thanks

Marcel

 

Re:find a substring with the Filter method


Quote
>in one of the Delphi-Help-Files I red that I can use placeholders (or
>spaceholders, I mean a *) to filter a string ( it should be like the
>LIKE keyword in SQL ) .

>I tried that with the Filter method  (e.g. Query1.Filter), but it seems
>only to work if I key in the whole string without any placeholders .

>Do I use the wrong placeholder ?

The * works only for a trailing characters match.

Post the code you are trying to use in the Filter property.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads