[fpc-devel] LocateNext
Michael Van Canneyt
michael at freepascal.org
Fri Apr 7 21:55:59 CEST 2006
On Fri, 7 Apr 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. Does Locate guarantee
> finding the first record that matches ?
It should.
Personally, I always use filter for such things.
Michael.
More information about the fpc-devel
mailing list