Filling a Listbox with Paradox(Delphi) Database

Asked

Viewed 643 times

0

Good afternoon, my friends. I’m having trouble filling a listbox with information from a Database table in Paradox, Data Source is the file "Gap03dm.Sourcechaves" and Datafield is "Field". How to do?

  • 1

    I feel sorry for you having to work with a bank like that.

1 answer

1


procedure TFrmPrincipal.Button4Click(Sender: TObject);
begin
  ListBox1.Items.Clear;
  Table1.First;
  while not Table1.Eof do
  begin
    ListBox1.Items.Add(Table1.FieldByName('CAMPO').AsString);
    Table1.Next;
  end;
end;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.