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?

Upvotes: 3

Views: 3287

Answers (1)

bummi
bummi

Reputation: 27377

Change the Filter syntax to

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

Upvotes: 14

Related Questions