Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
AW: Liste von proceduren
8. Mär 2016, 17:02
Hallo,
Das sollte so gehen:
Delphi-Quellcode:
type
TProcedure = procedure;
TProcedureList = class(TList<TProcedure>) // uses Generics.Collections für TList<T>
public
procedure Do;
end;
procedure TProcedureList.Do;
var i: Integer;
begin
for i:=0 to Count-1 do
Items[i]();
end;
Michael "Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
Geändert von Neutral General ( 9. Mär 2016 um 14:06 Uhr)
|