Search code examples
delphifiltertclientdataset

ClientDataSet filter with "NOT LIKE"


When using the Filter property of the ClientDataSet with filter

Name NOT LIKE 'Paulo%'

says that the syntax is incorrect.

how can I make a workaround in the filter?


Solution

  • Change the Filter syntax to

      Clientdataset.Filter := 'NOT [Name]  LIKE ' +QuotedStr('Paulo%');