Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: RTTI - Methodenpointer durch Name rausfinden
6. Okt 2007, 14:36
Hi,
Habs so gemacht (gefunden durch DP-Suche)
Delphi-Quellcode:
var _Create: TMethod;
begin
_Create.Code := MethodAddress('NamederMethode');
_Create.Data := Self;
FOnCreate := TCreateEvent(_Create);
// ...
end;
Gruß
Neutral General
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."
|