Autor Beitrag
C++arsten
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 79



BeitragVerfasst: Mo 09.04.07 07:16 
Kann man innerhalb einer Prozedur eine Prozedur erstellen? Gibt es keywords, Anweisungen oder dergleichen, die so etwas ermöglichen?
Gruß
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mo 09.04.07 09:58 
Meinst du eine Subfunktion oder willst du dynamisch eine erzeugen?

_________________
Markus Kinzler.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 09.04.07 10:20 
Es gibt "lokale" Prozeduren, die lassen sich z.B. so programmieren:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.Button1Click(Sender: TObject);
  procedure DoBlue;
  begin
    color := clblue;
  end;
begin
  Showmessage('blau');
  DoBlue;
end;

_________________
We are, we were and will not be.
C++arsten Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 79



BeitragVerfasst: Mo 09.04.07 10:41 
Danke.