| Autor |
Beitrag |
Marco D.
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 21.12.06 19:38
Warum ergibt das false, wenn in edit1.text '5' steht?
Delphi-Quelltext 1: 2:
| if (TryStrToInt(edit1.text,nr)) then |
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
Gausi
      
Beiträge: 8554
Erhaltene Danke: 481
Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
|
Verfasst: Do 21.12.06 19:41
Bist du sicher, dass '5' und nicht '5 ' oder ' 5' im Edit steht?
_________________ We are, we were and will not be.
|
|
Jakob Schöttl
      
Beiträge: 929
Erhaltene Danke: 1
Delphi 7 Professional
|
Verfasst: Do 21.12.06 19:42
Kann eigentlich nicht sein, hast du schon in der Delphi hilfe zu dieser Funktion nachgeschaut?
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 21.12.06 19:45
Es war ja auch edit2.text, das zu prüfen ist. Edit1 ist ein anderes.  Hat sich erledigt. 
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
wolke
      
Beiträge: 240
|
Verfasst: Do 21.12.06 20:22
lol... sinnvollere namen vergeben?
|
|
jakobwenzel
      
Beiträge: 1889
Erhaltene Danke: 1
XP home, ubuntu
BDS 2006 Prof
|
Verfasst: Do 21.12.06 20:23
Mal debuggen?
_________________ I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
|
|
Marco D. 
      
Beiträge: 2750
Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
|
Verfasst: Do 21.12.06 20:55
wolke hat folgendes geschrieben: | | lol... sinnvollere namen vergeben? |
Sind ja nur zwei Edits, deshalb nicht nötig.
_________________ Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
|
|
jakobwenzel
      
Beiträge: 1889
Erhaltene Danke: 1
XP home, ubuntu
BDS 2006 Prof
|
Verfasst: Do 21.12.06 22:24
Anscheinend nicht. 
_________________ I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
|
|