Good afternoon, friends. I'm having trouble filling a listbox with information from a Paradox Database table, the Data Source is the "Gap03Dm.SourceChaves" file and the DataField is "Field". How to make?
Good afternoon, friends. I'm having trouble filling a listbox with information from a Paradox Database table, the Data Source is the "Gap03Dm.SourceChaves" file and the DataField is "Field". How to make?
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;