我正在学习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;
Run Code Online (Sandbox Code Playgroud)
然后,在某个地方,我尝试将项目放在数组中:
rapport.Categories[i].Label:=l.Item(i).InnerText;
Run Code Online (Sandbox Code Playgroud)
但它不起作用.有人可以点燃我吗?
谢谢!
你有没有开发Delphi Prism 2010或2011?如果是这样,你的主要投诉是什么?我似乎无法对相对较新的版本发现太多批评.你用它来做什么?Windows上的.NET应用程序?在不同的操作系统上?你最喜欢它的什么?
谢谢!
我想知道Delphi prism中是否存在变量数据类型.
我正在为Delphi Prism .NET环境转换Delphi win32应用程序.
我正在尝试执行以下表达式,但我一直遇到此异常,"无法找到'chars'的属性设置器."
这是表达式:
xstr, str : string;
for i := 1 to length(str) do
begin
if ((i mod 2)<>0) then
begin
xstr[i] := char(Ord(str[i]) xor $AA); <<<<------ Exception Raised
end
else
begin
xstr[i] := char(Ord(str[i]) xor $55); <<<<------ Exception Raised
end;
end;
Run Code Online (Sandbox Code Playgroud)
"str"的值被传递给加密方法.
这是加密方法的一部分.做这个的最好方式是什么?