DBListBox

Delphi

20/02/2004

estou usando tabela paradox e preciso listar o conteúdo de uma tabela em um dblistbox.... como faço


Rafael Santana

Rafael Santana

Curtidas 0

Respostas

Fabio.hc

Fabio.hc

20/02/2004

Tente assim:

procedure TForm1.Button1Click(Sender: TObject);
begin
   DBListBox1.Clear;
   Query1.First;
   while not Query1.Eof do
      begin
      DBListBox1.Items.Add(Query1.FieldValues[´name´]);
      Query1.Next;
      end;
end;


Ou

O DBLookupListBox, basta vc configurar as propriedades:
Listsource, ListField e KeyField.


GOSTEI 0
POSTAR