Autor Beitrag
souso20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mo 20.09.04 14:09 
Hallo Leute!

Ich habe ein Objekt(child) welches von zwei unterschiedlichen Objekten(2*Parent) instanziert wird.

Nun möchte ich in dem Child-Objekt herausfinden welches Objekt diese erstellt hat um dann unterschiedliche Dinge

zu realisieren. Ich hoffe ich habe mich halbwegs verständlich ausgedrückt.

Danke für Eure Hilfe

Adios
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mo 20.09.04 14:11 
Ähm, wenn ich's richtig verstanden habe:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
constructor MeineKlasse.Create(AOwner: TComponent);
begin
 inherited Create(AOwner);
 ShowMessage(AOwner.ClassName+' hat mich erstellt');
end;

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
souso20 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mo 20.09.04 14:28 
Jepp so hab ich es gemeint.

Danke für die schnelle Hilfe