[fpc-devel] LocateNext

Marc Weustink marc at dommelstein.net
Sat Apr 8 17:19:34 CEST 2006

Micha Nelissen wrote:
> On Fri, 07 Apr 2006 21:16:23 +0200
> Joost van der Sluis <joost at cnoc.nl> wrote:
>>function Locate(const keyfields: string; const keyvalues: Variant;
>>  options: TLocateOptions; LocateNext : boolean ) : boolean; 
>>So that it's possible to doe a 'locatenext'
>>But I saw that sqlite simply has a 'locatenext' function. But it is also
>>possible to add a TLocateOption...
>>I'm thinking about implementing this (abstract) at the TDataset level.
>>What option should I choose and what do you guys think the idea?
> I think .Filter in combination with .FindFirst/Prior/Next/Last is just as
> powerful, so a LocateNext should not be needed. 

Not really. Sometimes I use a locate to find a record in a dataset. I 
don't want to limit the records in that dataset with a filter.


> Does Locate guarantee
> finding the first record that matches ?
> Micha
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

More information about the fpc-devel mailing list