var List:TStrings; //.... List:=TStringList.create;with Adoquery1 do begin close; sql.text:='select cust_no from tablename '; open; while not adoquery1.eof do begin List.add(adoquery1.fieldbyname('cust_no').asstring); adoquery1.next; end; close; showmessage(list.text); // end;
List:TStrings;
//....
List:=TStringList.create;with Adoquery1 do
begin
close;
sql.text:='select cust_no from tablename ';
open;
while not adoquery1.eof do
begin
List.add(adoquery1.fieldbyname('cust_no').asstring);
adoquery1.next;
end;
close; showmessage(list.text); //
end;