Einzelnen Beitrag anzeigen

MrKnogge

Registriert seit: 9. Jun 2003
Ort: Pforzheim
2.458 Beiträge
 
Delphi 2007 Professional
 
#14

Re: Felder initialisieren + function

  Alt 6. Jun 2004, 14:11
dann nimmst du eben

Delphi-Quellcode:
type
  TForm1 = Class(TForm)
  ...
    private
      function ClearAll(): boolean;

...

function TForm1.ClearAll(): boolean;
begin
  Edit1.Clear;
  Memo1.Clear;
  if (Edit1.Text = '') and (Memo1.Text = '') then
    result := true
  else
     result := false;
end;
Und was bringt dir nun der unterschied ?

[Edit]verdamte Tippfehler[/Edit]
[Edit2]Danke@mirage, das hatte ich glatt übersehen[/Edit2]
Christian Bootz
Einstein ist tot, Newton ist tot,
und mir ist auch schon ganz schlecht...
  Mit Zitat antworten Zitat