Autor Beitrag
schermerbua
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: Di 17.05.05 11:38 
Mit welcher edit-ähnlichen komponente kann ich nur integer werte abspeichern?
weil den text eines edits kann ich nicht in integer wandeln!
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Di 17.05.05 11:40 
Titel: Re: Edit feld mit integer?
user profile iconschermerbua hat folgendes geschrieben:

weil den text eines edits kann ich nicht in integer wandeln!

Warum nicht?

_________________
mfg. Joel
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Di 17.05.05 11:42 

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 17.05.05 11:42 
Titel: Re: Edit feld mit integer?
user profile iconschermerbua hat folgendes geschrieben:
Mit welcher edit-ähnlichen komponente kann ich nur integer werte abspeichern?
Man kann mit einem TEdit Werte abspeichern?
Zitat:
weil den text eines edits kann ich nicht in integer wandeln!
KLar kann man das. Z.B. mit strtoint.
Ansonsten: TSpinEdit hilft evtl.

_________________
We are, we were and will not be.
OneOfTen
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 17.05.05 11:43 
oder benutze ein SpinEdit.

Über SpinEdit.Value kannste dir das StrToInt sparen und du kannst gleichzeitig einen Wertebereich ausgeben, angeben natürlich.
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 17.05.05 11:53 
Hier im Forum gibts auch Tips mit einem normalen Edit nur Zahlen zuzulassen:

Suche in: Delphi-Forum, Delphi-Library EDIT NUR ZAHLEN

www.delphi-forum.de/viewtopic.php?t=37896

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
schermerbua Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 63

Win XP

BeitragVerfasst: Di 17.05.05 12:04 
hm, jetzt funktioniert strtoint auf einmal!
danke trotzdem
bitte closen!
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Di 17.05.05 16:57 
user profile iconschermerbua hat folgendes geschrieben:
bitte closen!

Na, na, na, lieber nich! Das wird nur gemacht, wenn der Inhalt des Threads net mehr kontrollierbar wird (wenn sich die user nur noch beschimpfen, etc.) :)
Außerdem, wenn jemand noch dein Prob haben sollte, könnte er dann hier nicht weiterschreiben. Das ist jetzt nicht auf genau diesen thread, sondern auf alle allgemeinen bezogen ;)