标签: delphi-prism

Delphi - > Delphi prism,如何使用数组记录?

我正在学习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)

但它不起作用.有人可以点燃我吗?

谢谢!

arrays delphi record oxygene delphi-prism

0
推荐指数
1
解决办法
2003
查看次数

Delphi Prism 2010/2011的优缺点是什么?

你有没有开发Delphi Prism 2010或2011?如果是这样,你的主要投诉是什么?我似乎无法对相对较新的版本发现太多批评.你用它来做什么?Windows上的.NET应用程序?在不同的操作系统上?你最喜欢它的什么?

谢谢!

delphi oxygene delphi-prism

0
推荐指数
1
解决办法
671
查看次数

.NET中的变体数据类型是否有替换?

我想知道Delphi prism中是否存在变量数据类型.

我正在为Delphi Prism .NET环境转换Delphi win32应用程序.

.net types variant delphi-prism

0
推荐指数
1
解决办法
6552
查看次数

找不到"Chars"的物业设定者

我正在尝试执行以下表达式,但我一直遇到此异常,"无法找到'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"的值被传递给加密方法.

这是加密方法的一部分.做这个的最好方式是什么?

char oxygene delphi-prism

0
推荐指数
1
解决办法
81
查看次数

标签 统计

delphi-prism ×4

oxygene ×3

delphi ×2

.net ×1

arrays ×1

char ×1

record ×1

types ×1

variant ×1