[fpc-pascal] Re: Using TSdfDataset

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Sat Sep 6 04:18:53 CEST 2008


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.RecNo := i;
    AStringList.Add(FDataset.FieldByName(STR_DB_COMPONENTS_NAMEEN).Value);
  end;
end;

The same code worked fine with sqlite, any ideas?

thanks,
-- 
Felipe Monteiro de Carvalho



More information about the fpc-pascal mailing list