Autor Beitrag
steve-allround
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59

Linux, Windows

BeitragVerfasst: Mo 03.10.05 11:53 
Hallo,

ich komme hier irgendwie nicht weiter....
Ich habe verschiedene Memofelder und zur Berechnung einer Summe zum Beispiel, muss immer eine Zahl in diesem Feld sein. Also, auch wenn man keine Zahl eingeben will, muss da eine 0 stehen.

Nun weis ja der Benutzer dieses Problem nicht und löscht einfach die Zahl in diesem Feld....

Nun meine Frage:

Wie funktioniert das, selbst wenn man etwas aus einem Memofeld entfernt, löscht dass dort automatisch eine 0(Null) hereingeschrieben wird?????????

Kann mir da jemand helfen?

Moderiert von user profile iconChristian S.: Titel geändert - jeder findet sein Problem wichtig
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: Mo 03.10.05 11:56 
ausblenden OnChange
1:
2:
if Length(Memo1.Text) = 0 then
  Memo1.Text := '0';

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

Linux, Windows

BeitragVerfasst: Mo 03.10.05 12:06 
Echt vielen Dank...

ich werd bekloppt, dat klappt ja...

Mensch freu ich mich...

VIIEEELLLLEEEENNN DAAANNNNKKK