select name from table在执行了此语句后,希望把取得的结果在Showmessage();中列出来,怎么做?(10分)

  • 主题发起人 主题发起人 zobo
  • 开始时间 开始时间
Z

zobo

Unregistered / Unconfirmed
GUEST, unregistred user!
select name from table在执行了此语句后,希望把取得的结果在Showmessage();中列出来,怎么做?
 
msgstr:stirng;
while not table1.eof do
begin
msgstr:=msgstr+','+table1.fields[0].values//大概是这样
table1.next
end;
showmessage(msgstr);
 
str:stirng;
select name as aa from table;
while not table1.eof do
begin
msgstr:=str+','+table1.fieldsbyname('aa').asstring;
table1.next
end;
showmessage(str);
________________
这样能满足要求吧!
 
迟了!555
 
后退
顶部