You'll have to forgive me, I new to Delphi, but have been a programmer in other languages for years.
I am using the filter property to filter the records depending on text entered into an edit box. The problem I am having is as follows:
I can only get results for strings that have a partial string at the beginning of a string. I want to get any of the following results for the following text:
edit box text : box
required results in the name field:
The box
box company
boxes and bits
The code I have will only return the last two results..
strSearch := 'NAME = ' + CHR(39) + TRIM(edit1.text) + '*' + cHR(39)
I have tried adding a second * wildcard at the front but this returns nothing... I have also tried the '%' either side which don't seem to work in the table filter.
I would be thankfull for any help that you could give me
I am using the filter property to filter the records depending on text entered into an edit box. The problem I am having is as follows:
I can only get results for strings that have a partial string at the beginning of a string. I want to get any of the following results for the following text:
edit box text : box
required results in the name field:
The box
box company
boxes and bits
The code I have will only return the last two results..
strSearch := 'NAME = ' + CHR(39) + TRIM(edit1.text) + '*' + cHR(39)
I have tried adding a second * wildcard at the front but this returns nothing... I have also tried the '%' either side which don't seem to work in the table filter.
I would be thankfull for any help that you could give me