0

I am get an error that "Expression unexpectedly terminated" when i want to doing on the FireDac MemTable. I am use that codes

with FMemtable1 Do
 begin 
  Filtered :=False;
  Filter   := 'Field1 like ' + ''''+'%'+Edit1.Text+'%'+'''';
  Filtered :=true; 
 end

But im not get this error when i was try on the XE6

TLama
  • 75,147
  • 17
  • 214
  • 392

1 Answers1

-1

this Code not ABC filtering

Filter   := 'Field1 like ' + ''''+'%'+Edit1.Text+'%'+''''; // filter Any Letter

Filter := 'Field1 like ' + QuotedStr(Edit1.Text‌​);// filter Exactly Word
Roman Marusyk
  • 23,328
  • 24
  • 73
  • 116