S
stock
Unregistered / Unconfirmed
GUEST, unregistred user!
有表A:
TYPE NAME
001 001001001
002 222222222
003 300300300
想把表A的内容转化为二维数组:
TYPENAME[0,0]:='001' TYPENAME[0,1]:='001001001'
TYPENAME[1,0]:='001' TYPENAME[1,1]:='001001001'
TYPENAME[2,0]:='001' TYPENAME[2,1]:='001001001'
程序如下:
var type_name: array of array of string;
count:integer;
begin
query.close;
query.sql.text:='select * from tableA where 條件';
query.open;
SetLength(type_name, query.recoardcount-1, query.fields.count-1);
??????
end;
请问在问号处应该怎么为该数组赋值?谢谢!
TYPE NAME
001 001001001
002 222222222
003 300300300
想把表A的内容转化为二维数组:
TYPENAME[0,0]:='001' TYPENAME[0,1]:='001001001'
TYPENAME[1,0]:='001' TYPENAME[1,1]:='001001001'
TYPENAME[2,0]:='001' TYPENAME[2,1]:='001001001'
程序如下:
var type_name: array of array of string;
count:integer;
begin
query.close;
query.sql.text:='select * from tableA where 條件';
query.open;
SetLength(type_name, query.recoardcount-1, query.fields.count-1);
??????
end;
请问在问号处应该怎么为该数组赋值?谢谢!