Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Delphi XE3 中将 String 转换为 LongInt?strtoInt & strToint64 用于类型小于 LongInt 的变量。
查看它的签名,我不认为 StrToInt 的 int 小于 longint。Integer 默认是 Delphi 中 LongInt 的别名。这是这些类型的表格。
使用值的...StrToInt...()重载Integer会很好。 Integer并且LongInt是相同的字节大小。
...StrToInt...()
Integer
LongInt