0
votes

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

2
which platform do you talk about ? in Win32 and Apple32 platforms Int64 is 2^32 times more than LongInt. Don't remember about Win64 thoughArioch 'The
i'm talking about windows, both win32 and overloaded version for 64ae1080
LongInt is 32 bits Integer on all platforms!jachguate

2 Answers

1
votes

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

5
votes

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.