Page 1 of 1

Filtering Records

Posted: 30.03.2011, 09:52
by Youriy86
Hello!
I am using TZQuery.Filter like this:

TZQuery.Filter := 'doc_title like ''*text*''';
TZQuery.Filtered := True;

Result set has all matched records and records that have length = 1.
And filtering don't working when i try to find by last symbol.

Please help me. What is solution?

P.S. sry for very bad english.

Posted: 30.03.2011, 10:14
by Stilgar
Try to use
TFilterRecordEvent = procedure(DataSet: TDataSet; var Accept: Boolean) of object;
property OnFilterRecord: TFilterRecordEvent;

then you can active with your Filtered := True.

So you don't depend by engine.