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

标签 delphi delphi-xe3

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

最佳答案

查看its signature ,我不认为 StrToInt 对于 int 小于 longint。 Integer 默认情况下是 LongInt 在 Delphi 中的别名。 Here是这些类型的表。

关于delphi - 如何在 Delphi XE3 中将 String 转换为 LongInt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13603838/

相关文章:

multithreading - Delphi访问线程变量

delphi - Delphi 6 是否有一个实用程序可以分析类层次结构并可以查询方法祖先?

delphi - 是否有类似StrToCurr的函数可以处理数千个分隔符?

delphi - 如何在 Delphi XE3、Firemonkey2 中更新 TStringGrid 单元格

Delphi 7 和 Vista/Windows 7 通用对话框 - 事件不起作用

Delphi TAction ShortCut 不适用于子窗体

Delphi 单例模式

delphi 中的 C++ 类型 int8_t[20]?

delphi - 为什么 WebApplication.SendFile 失败并显示 "Reply type already set"?

delphi - 我可以更改监视列表中字符串的显示格式吗?