我正在学习 Delphi Prism,但我不知道如何用它编写以下代码:
type
TRapportItem = record
Label : String;
Value : Int16;
AnomalieComment : String;
end;
type
TRapportCategorie = record
Label : String;
CategoriesItems : Array of TRapportItem;
end;
type
TRapportContent = record
Categories : array of TRapportCategorie;
end;
然后,在某个地方,我尝试将项目放入数组中:
rapport.Categories[i].Label:=l.Item(i).InnerText;
但这不起作用..有人可以启发我吗?
谢谢!