Autor Beitrag
-delphin-
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 200



BeitragVerfasst: Di 21.06.05 19:09 
Hallo, ich hätte eine kleine Frage und zwar will ich eine if-then-Abfrage machen, die überprüft, ob das Memofeld leer ist oder nicht..
Das heißt ich brauche irgendeinen befehl die Memo1.Lines:=0 oder so etwas, nix weltbewegendes meine frage ich weiß :D suche nur schon ne zeit und komme nicht dahinter
thx 4 help :D
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 21.06.05 19:12 
Wie wär's mit
ausblenden Delphi-Quelltext
1:
2:
3:
if Memo1.Text = '' then begin
//code
end;

;)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 21.06.05 19:12 
Nimm doch die Text Eigenschaft und überprüfe, ob diese leer ist.
-delphin- Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 200



BeitragVerfasst: Di 21.06.05 19:33 
jo thx
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Di 21.06.05 19:46 
user profile icon[Delphi]N hat folgendes geschrieben:
jo thx

Kein Problem. ;)

Falls auch evtl. ein Zeilenumbruch drin sein könnte, dann bau's lieber noch so aus:
ausblenden Delphi-Quelltext
1:
2:
3:
if (Memo1.Text = '') or (Memo1.Text = Chr(13)+Chr(10)) then begin
//code
end;


;)

Moderiert von user profile iconAXMD: Quote wegen Usernamen bearbeitet

Nochmal nachmoderiert von mir selber... :tongue: :mrgreen: