var VLogfile,VProfile:TstringList;
// 文件读入此 StringList中 LinStr:Tstrings;
// 用于拆分每一行的临时变量 i,k:integer;
type Row=array[1..200]of Tstrings;
begin
VLogfile:=TstringList.Create;
LinStr:=TstringList.Create;
VProfile.LoadFromFile('D:/123.txt');
for i:=0 to VLogfile.Count-1do
begin
LinStr.Clear;
ExtractStrings([';',',',':','|',' '],['@',' '],PChar(VLogfile.Strings),LinStr);
if stringgrid1.RowCount<i+1 then
//添加行 stringgrid1.RowCount:=i+1;
stringgrid1.Row:=LinStr;
//整行赋值 end;
end;
还是 stringgrid1.Row:=LinStr;
//整行赋值 出现array type required