Hi,
I need to be able to search a table for searchstrings...
The table is a Adressbook and what I want to do is search on names with the Filter property...
Table1.Filter := 'Name = ' + QuotedStr(EditSearch.Text);
This works, but then you have to search for the full name, correctly spelled or it won't work... What I want is to be able to search for parts of the name... For example: I search for "ters" then the Adress of "Peeters Jack" should be with the results... using CompareText doesn't seem to work?
Can anyone help me?
Thanx in advance,
math
I need to be able to search a table for searchstrings...
The table is a Adressbook and what I want to do is search on names with the Filter property...
Table1.Filter := 'Name = ' + QuotedStr(EditSearch.Text);
This works, but then you have to search for the full name, correctly spelled or it won't work... What I want is to be able to search for parts of the name... For example: I search for "ters" then the Adress of "Peeters Jack" should be with the results... using CompareText doesn't seem to work?
Can anyone help me?
Thanx in advance,
math