alexandru.alexandrov at gmail.com
Sat Apr 8 20:31:20 CEST 2006
On 4/7/06, Joost van der Sluis <joost at cnoc.nl> wrote:
> Hi all,
> I'm busy implementing TBufDataset.Locate and friends. I had the idea to
> overload Locate like this:
> 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...
There is no need to pass again keyfields, keyvalues and options
parameters to locate next match. What to do if they are not the same
as for first locate?
IMO sqlite aproach is better.
> 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 a LocateNext function would be fine.
More information about the fpc-devel