The ...StrToInt...()
overloads that work with Integer
values will be fine. Integer
and LongInt
are the same byte size.
How to convert String to LongInt in Delphi XE3?
-
03-12-2021 - |
Question
How to convert String to LongInt in Delphi XE3? strtoInt & strToint64 are for variables of types less than LongInt.
Solution 2
OTHER TIPS
Looking at its signature, I don't think StrToInt is for int less than longint. Integer is an alias for LongInt in Delphi by default. Here is the table for those types.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow