如何在Delphi XE3中将String转换为LongInt?

时间:2012-11-28 11:19:54

标签: delphi delphi-xe3

如何在Delphi XE3中将String转换为LongInt? strtoInt& strToint64适用于类型小于LongInt的变量。

2 个答案:

答案 0 :(得分:5)

its signature,我认为StrToInt不是因为int而不是longint。默认情况下,Integer是Delphi中LongInt的别名。 Here是这些类型的表格。

答案 1 :(得分:1)

使用...StrToInt...()值的Integer重载会很好。 IntegerLongInt的字节大小相同。