Re: [fpc-devel] LocateNext

2006-04-10 Thread Luiz Americo Pereira Camara
Micha Nelissen escreveu: On Mon, 10 Apr 2006 12:33:18 +0200 Joost van der Sluis <[EMAIL PROTECTED]> wrote: If you don't want to limit, then set .Filtered := false; and use FindFirst etc. wich won't work with current sqldb, since filtering there simply adds a 'where' part to the query

Re: [fpc-devel] LocateNext

2006-04-10 Thread Micha Nelissen
On Mon, 10 Apr 2006 12:33:18 +0200 Joost van der Sluis <[EMAIL PROTECTED]> wrote: > > If you don't want to limit, then set .Filtered := false; and use > > FindFirst etc. > > wich won't work with current sqldb, since filtering there simply adds a > 'where' part to the query. > An which is much slo

Re: [fpc-devel] LocateNext

2006-04-10 Thread Michael Van Canneyt
On Mon, 10 Apr 2006, Joost van der Sluis wrote: 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. If you don't want to limit, then set .Filtered := false; and use FindFirst etc. wich won't work with current

Re: [fpc-devel] LocateNext

2006-04-10 Thread Alexandrov Alexandru
On 4/10/06, Joost van der Sluis <[EMAIL PROTECTED]> wrote: > > > 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 : boole

Re: [fpc-devel] LocateNext

2006-04-10 Thread Joost van der Sluis
> > 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' >

Re: [fpc-devel] LocateNext

2006-04-10 Thread Joost van der Sluis
> > 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. > > If you don't want to limit, then set .Filtered := false; and use > FindFirst etc. wich won't work with current sqldb, since filtering there simply adds

Re: [fpc-devel] LocateNext

2006-04-08 Thread Alexandrov Alexandru
On 4/7/06, Joost van der Sluis <[EMAIL PROTECTED]> 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 ) : bo

Re: [fpc-devel] LocateNext

2006-04-08 Thread Micha Nelissen
On Sat, 08 Apr 2006 17:19:34 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote: > > 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

Re: [fpc-devel] LocateNext

2006-04-08 Thread Marc Weustink
Micha Nelissen wrote: On Fri, 07 Apr 2006 21:16:23 +0200 Joost van der Sluis <[EMAIL PROTECTED]> 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

Re: [fpc-devel] LocateNext

2006-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2006, Micha Nelissen wrote: > On Fri, 07 Apr 2006 21:16:23 +0200 > Joost van der Sluis <[EMAIL PROTECTED]> wrote: > > > function Locate(const keyfields: string; const keyvalues: Variant; > > options: TLocateOptions; LocateNext : boolean ) : boolean; > > > > So that it's possib

Re: [fpc-devel] LocateNext

2006-04-07 Thread Micha Nelissen
On Fri, 07 Apr 2006 21:16:23 +0200 Joost van der Sluis <[EMAIL PROTECTED]> 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

[fpc-devel] LocateNext

2006-04-07 Thread Joost van der Sluis
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