L
lzhpro
Unregistered / Unconfirmed
GUEST, unregistred user!
为何以下的代码读出的字段顺序与设计表时不同?
——————————————————————————————————
with query_Search do
begin
close;
sql.Clear ;
sql.Text :='SELECT * from Table1 where 1=2';
try
open;
except
close;
end;
end;
for I := 0 to DataSource1.DataSet.FieldCount - 1 do
List_FieldName.Items.Add(DataSource1.DataSet.Fields.FieldName);
——————————————————————————————————
with query_Search do
begin
close;
sql.Clear ;
sql.Text :='SELECT * from Table1 where 1=2';
try
open;
except
close;
end;
end;
for I := 0 to DataSource1.DataSet.FieldCount - 1 do
List_FieldName.Items.Add(DataSource1.DataSet.Fields.FieldName);