Autor Beitrag
th3Thr1ll3r
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 31

Win XP Prof
Delphi 6 Pers.
BeitragVerfasst: Sa 22.04.06 22:03 
Hi, ich hab ein Problem, ich möchte in einem Edit-Feld eine Zahl eintragen lassen...

Danach möchte ich kontrollieren, ob die Zahl auch wircklich ein Integer ist, weil ich das ganze danach in einer ini-Datei speichern möchte... und ich immer nen fehler bekomm, wenn ich z.B. nen Text, oder gar nix eingebe...

MfG

th3Thr1ll3r
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Sa 22.04.06 22:18 
Hatten wir in den letzten Tagen schon einmal..
Einfach mal die Forensuche benutzen ;)

try..except
trystrtoint
eingabe überprüfen


greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 22.04.06 22:18 
Verwende am besten eine MaskedEdit. So kannst du sicherstellen das nur Werte in einem bestimmten Format ( z.B. integer) eingegeben werden kann.

_________________
Markus Kinzler.