Autor Beitrag
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Di 14.03.06 15:10 
hi

also
ich hab ein problem.
ich habe eine form wenn die sich öfnet und in dem edit1 nichts stehen sollte soll das programm eine 0 reinschreiben das macht er aber nicht.

ausblenden Delphi-Quelltext
1:
2:
if muellrechnung='' then
   muellrechnung:=0;


das geht aber net warum und wie muss ich den fehler beheben
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 14.03.06 15:14 
Ist muellrechnung ein edit?
wenn ja:
ausblenden Delphi-Quelltext
1:
if muellrechnung.text='' then muellrechnung.text:='0';					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 14.03.06 15:14 
schreibe entweder
ausblenden Delphi-Quelltext
1:
if muellrechnung.text ='' then muellrechnung.text := '0';					


oder
ausblenden Delphi-Quelltext
1:
if muellrechnung.text = '' then muellrechnung.text := IntToStr(0);					


mfg
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 14.03.06 15:16 
user profile iconNoTVerYEvilPzYchO hat folgendes geschrieben:
schreibe entweder
ausblenden Delphi-Quelltext
1:
2:
if muellrechnung='' then
   muellrechnung:= '0';


oder
ausblenden Delphi-Quelltext
1:
2:
if muellrechnung='' then
   muellrechnung:=IntToStr(0);


mfg

Musst du nicht muellrechnung.text schreiben?

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Di 14.03.06 15:18 
habe ich doch ;)
chriss1988 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Di 14.03.06 15:22 
dankeeeeeeeeeeeeee
chriss1988 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Di 14.03.06 15:26 
aber bitte nicht streiten