对应非方阵数组:
var
A : array of array of string;
I, J : Integer;
begin
RowCount:=(***your request);
ColCount:=(***your request);
SetLength(A, RowCount,ColCount);
for I := Low(A) to High(A) do
begin
for J := Low(A) to High(A) do
A[I,J] := (***your request);
end;
end;
如果不能先确定长度,则要判断,如RowCount不定:
begin
//RowCount:=(***your request);
ColCount:=(***your request);
SetLength(A, 2,ColCount);//先初始化一个小的2行
for I := Low(A) to High(A) do
if I>=2 then
SetLength(A,I+1,ColCount);//动态增加一行
begin
for J := Low(A) to High(A) do
A[I,J] := (***your request);
end;
end;