L
lebronjames
Unregistered / Unconfirmed
GUEST, unregistred user!
各位大侠,我想把ACCESS数据库里的某一字段的所有记录的值取出来循环放入一个动态一维数组,这是我的代码:
i:integer;
a:array of string;
begin
for i:=0 to adotable1.FieldCount-1 do
begin
a:=adotable1.Fields.Fields['姓名'].Value;
end;
end;
编译没问题,但是运行的时候就提示:存取地址违例发生在模块....
请问各位代码哪儿有点问题啊?
i:integer;
a:array of string;
begin
for i:=0 to adotable1.FieldCount-1 do
begin
a:=adotable1.Fields.Fields['姓名'].Value;
end;
end;
编译没问题,但是运行的时候就提示:存取地址违例发生在模块....
请问各位代码哪儿有点问题啊?