Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
Re: Suchen einer Methode
10. Apr 2008, 21:41
Hi,
versuchs mal so:
Delphi-Quellcode:
TDeineMethode = procedure (lala: Integer) of object;
var x: TMethod;
y: TDeineMethode;
begin
x.Data := Button1;
x.Code := TForm1.MethodAddress('Sieben');
y := TDeineMethode(x);
y(5);
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."
|