Autor Beitrag
Cracker
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 09.04.06 15:59 
Hi

Folgendes

Über ein Eingabefeld kann man bis zu einer 10 stelligen Zahl eingeben (also max.9999999999), allerdings bekomm ich dann immer den Fehler, dass es keine gültige Integer zahl ist, wobei ich mittlerweile schon int64 genommen habe und wandle es mit strtoin um

Wo ist mein fehler

Vielen Dank!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 09.04.06 16:36 
Nutze in diesem Fall einfach StrToInt64.

Die Ursache dieses Fehlers liegt darin, dass 9999999999 > 2^31-1 (~2,147 Mrd.) ist, was zu einem Integer-Überlauf führt und sich bei Delphi durch diese Meldung äußert ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.