AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Procedures -Delphi

Ein Thema von question · begonnen am 15. Jul 2013 · letzter Beitrag vom 16. Jul 2013
Antwort Antwort
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#1

Procedures -Delphi

  Alt 15. Jul 2013, 20:31
Hello,

I have one basic question, what is the differene the following procedures:

procedure Test(Sender : Tobject);
Procedure Test();
Procedure Test;


Thanks in advance for your reply
  Mit Zitat antworten Zitat
Benutzerbild von Uwe Raabe
Uwe Raabe

Registriert seit: 20. Jan 2006
Ort: Lübbecke
11.009 Beiträge
 
Delphi 12 Athens
 
#2

AW: Procedures -Delphi

  Alt 15. Jul 2013, 21:18
The first procedure has one parameter, while the second and third have none. For those both styles are allowed.
Uwe Raabe
Certified Delphi Master Developer
Embarcadero MVP
Blog: The Art of Delphi Programming
  Mit Zitat antworten Zitat
Der schöne Günther

Registriert seit: 6. Mär 2013
6.110 Beiträge
 
Delphi 10 Seattle Enterprise
 
#3

AW: Procedures -Delphi

  Alt 16. Jul 2013, 09:46
Note that you may also omit the parameters when implementing a method you have already declared. Code completion sometimes does that. You don't have to. And I don't think you should

Delphi-Quellcode:
interface

[...]
   procedure myProcedure(Sender: TObject);
[...]

implementation

procedure myClass.myProcedure;
begin
   [...]
end;
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz