I'm using Delphi 2007.
I know I can use the .locate
method of a TClientDataSet
to locate a record, like this:
myClient.locate('name','John',[loPartialKey,loCaseInsensitive]);
But let's say I want to locate any record with 'John' containing on its name, something as:
name like '%John%'
Would do it in a regular SQL expression.
Is this possible using the .locate
method?
It seems the [loPartialKey]
works as starting with instead of containing.