Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-07 Thread Felipe Monteiro de Carvalho
On 9/7/08, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > I've never heard or seen TSdfDataset or TFixedDataset - other than > from your recent postings. From the wiki page, it looks like the data > is stored in a simple CSV file. So does the TxxxDataset class simply > act as a wrapper to the

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-07 Thread Graeme Geldenhuys
On Sun, Sep 7, 2008 at 2:46 PM, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > I started a documentation for TSdfDataset: > > http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial#Using_TSdfDataset_and_TFixedDataset Hi Felipe, I've never heard or seen TSdfDataset or TFixedDatase

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-07 Thread Felipe Monteiro de Carvalho
I started a documentation for TSdfDataset: http://wiki.lazarus.freepascal.org/Lazarus_Database_Tutorial#Using_TSdfDataset_and_TFixedDataset ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pasca

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Michael Van Canneyt
On Sat, 6 Sep 2008, Felipe Monteiro de Carvalho wrote: > Thanks! It works! > > But I am confused as to why the previous code didn't work, specially > considering that it worked perfectly with the sqlite dataset. > > I assume that RecNo does not work with the Sdf dataset. RecNo or MoveTo is ne

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Felipe Monteiro de Carvalho
Thanks! It works! But I am confused as to why the previous code didn't work, specially considering that it worked perfectly with the sqlite dataset. I assume that RecNo does not work with the Sdf dataset. -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Howard Page-Clark
Felipe Monteiro de Carvalho wrote: Here is my database file: ID,NAMEEN,NAMEPT,HEIGHT,WIDTH,PINS,DRAWINGCODE 1,resistor,resistor,1,1,1,LINE 2,capacitor,capacitor,1,1,1,LINE When listing the value of the NAMEEN field it will show: NAMEEN, resistor, resistor (yes, resistor again!) The correct sho

[fpc-pascal] Re: Using TSdfDataset

2008-09-06 Thread Felipe Monteiro de Carvalho
Now I got it a bit further. It seams that it doesn't crash if I set FirstLineAsSchema to true, but it also shows wrong value. Here is my database file: ID,NAMEEN,NAMEPT,HEIGHT,WIDTH,PINS,DRAWINGCODE 1,resistor,resistor,1,1,1,LINE 2,capacitor,capacitor,1,1,1,LINE When listing the value of the NAM

[fpc-pascal] Re: Using TSdfDataset

2008-09-05 Thread Felipe Monteiro de Carvalho
Extra information: Free Pascal 2.2.2 Mac OS X 10.4 -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Using TSdfDataset

2008-09-05 Thread Felipe Monteiro de Carvalho
Umm, there do is db code there, but it's inside some other routine, which does not show in the backtrace somehow: procedure TComponentsDatabase.FillStringListWithNames(AStringList: TStrings); var i: Integer; begin AStringList.Clear; for i := 1 to FDataset.RecordCount do begin FDataset