Fórum DBListBox #215544
20/02/2004
0
estou usando tabela paradox e preciso listar o conteúdo de uma tabela em um dblistbox.... como faço

Rafael Santana
Curtir tópico
+ 0
Responder
Posts
20/02/2004
Fabio.hc
Tente assim:
Ou
O DBLookupListBox, basta vc configurar as propriedades:
Listsource, ListField e KeyField.
1 2 3 4 5 6 7 8 9 10 | 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.
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)