Question

How to convert String to LongInt in Delphi XE3? strtoInt & strToint64 are for variables of types less than LongInt.

Was it helpful?

Solution 2

The ...StrToInt...() overloads that work with Integer values will be fine. Integer and LongInt are the same byte size.

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
scroll top