Autor Beitrag
hassedelphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Fr 15.08.03 09:29 
hi

hat jemand eine idee, wie man sowas hinkriegt, denn das funzt so nicht
ausblenden Delphi-Quelltext
1:
 if edit1.text = integer then (*...*)					

_________________
you're not be able to help, that you're an human
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Fr 15.08.03 09:35 
mach mal nen try block drum ...

_________________
hans bist du das ?
hassedelphi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Fr 15.08.03 09:47 
kapier ich nicht :oops:

_________________
you're not be able to help, that you're an human
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Fr 15.08.03 10:03 
Hallo!

Du musst erst den Integer Wert in einen String umwandeln oder den String (Edit) in einen Integer. Erst dann kannst du beide Werte miteinander vergleichen. Die Funktionen sind Suche in: Delphi-Forum, Delphi-Library INTTOSTR OR STRTOINT OR STRTOINTDEF.

Gruß
Tino
hassedelphi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Fr 15.08.03 10:16 
THX :D

_________________
you're not be able to help, that you're an human
gogi2207
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45



BeitragVerfasst: Fr 15.08.03 14:10 
Um zu überprüfen ob in einem String ein Zahlenwert bzw. Integer steht kannst du auch 'val' verwenden.

Jochen