Integer type question

hi, I got an error message saying 8231231233234211 is not a valid integer value.
I could not use int64 also getting the same message.
what type should i use for such numbers containing 16 digits?
thanks
oalawnaAsked:
Who is Participating?
 
_Katka_Connect With a Mentor Commented:
Hi, try to use:

function GetTheInt64Result:Int64;
begin
  Result:=SysUtils.StrToInt64('8231231233234211');
end;

instead..regards,
Kate
0
 
pcsentinelConnect With a Mentor Commented:
Integer      –2147483648..2147483647      signed 32-bit

but an int64 can go up to 9223372036854775807

this code works for me

var
      l64: Int64;
begin
  l64:=Int64(8231231233234211);
  label1.caption:=IntToStr(l64);
end;

how are yuo trying to assign the number to an int64


regards
0
 
oalawnaAuthor Commented:
thanks
it is like

function GetTheInt64Result:int64
begin

Result:= strtoint('8231231233234211');

end;
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
oalawnaAuthor Commented:
it is actually a EConvertError message.
0
 
oalawnaAuthor Commented:
thank you both
0
 
_Katka_Commented:
You're welcome :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.