Autor Beitrag
rn22
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Sa 26.05.07 14:13 
Hallo

Delphi bringt bei mir immer eine Fehlermeldung, wenn an StrToInt ein falscher Stringwert (keine Zahl) übergeben wird.

Wenn ich die Exe ausführe, kommt kein Fehler, weil ich den natürlich mit try-except abfange. Beim Ausführen in der Entwicklungsumgebung hilft das aber nicht. Nach dem Bestätigen gehts zwar mit F9 weiter, nervt aber trotzdem.

weiß jemand, ob und wie man das ausschalten kann?
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 26.05.07 14:18 
TryStrToInt(), Val(), try..except

_________________
Markus Kinzler.
rn22 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Sa 26.05.07 14:40 
Hab ich schon ...lies mal, was ich geschrieben hab
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 26.05.07 14:44 
Die Variante mit Try<Typ>To<Typ> finde ich besser.
Du kannst aber in den Debuggeroptionen einstellen, welche Exceptions vom Debugger ignoriert werden sollen

_________________
Markus Kinzler.


Zuletzt bearbeitet von mkinzler am Sa 26.05.07 15:08, insgesamt 1-mal bearbeitet
rn22 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Sa 26.05.07 14:55 
kannst du das ein bischen ausführen?
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 26.05.07 15:05 
Tools -> Debugger-Optionen -> Sprach-Exceptions -> Bei Delphi-Exceptions stoppen

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
rn22 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70



BeitragVerfasst: Sa 26.05.07 15:55 
Jo - jetzt klappts