st:='select ccuscode as 编码,ccusname as 客户名称 ';
st:=st+'from Customer ';
Aq:=tadoquery.Create(self);
with Aq do
begin
connectionstring:=dm.Adocon.ConnectionString;
close;
sql.Text:=st;
open;
end;为什么Fields.Fields[i].FieldName;还是显示ccuscode,ccusname
而不是“编码与客房名称”呢?怎样才能显示AS后的中文
st:=st+'from Customer ';
Aq:=tadoquery.Create(self);
with Aq do
begin
connectionstring:=dm.Adocon.ConnectionString;
close;
sql.Text:=st;
open;
end;为什么Fields.Fields[i].FieldName;还是显示ccuscode,ccusname
而不是“编码与客房名称”呢?怎样才能显示AS后的中文
你这样试一下
with Aq do
begin
connectionstring:=dm.Adocon.ConnectionString;
close;
sql.Text:='select ccuscode as 编码,ccusname as 客户名称 from Customer ';
open;
end;