Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi public function (https://www.delphipraxis.net/134978-public-function.html)

DeddyH 2. Jun 2009 15:19

Re: public function
 
So ist das nur eine Funktion, wenn Du die zugehörige Klasse davorschreibst, wird es eine Methode.
Delphi-Quellcode:
function TFormMain.test:boolean;
begin
  showMessage('test');
  Result := true; //zwar sinnfrei, aber Funktionen haben Rückgabewerte
end;

rotte 2. Jun 2009 15:22

Re: public function
 
Ach da sollte das hin!
Vielen Dank!! Jetzt funktioniert es.


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:42 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz