[Delphi 6] Introspection - iterate through all class members of a given type?
- From: "Richard" <radevenz@xxxxxxxxxxxxx>
- Date: 28 Oct 2005 08:20:49 -0700
Suppose I have a form with several components of type TFooBar. An
event handler passes the form to some other modules method
FooBarInspector() that wants to deal all the FooBars on the object it
is passed.
procedure FooBarInspector(Thing:TObject);
begin
// how would I code this?
for each TFooBar (as aFooBar) in Thing do begin
doSomethingWith (aFooBar);
end;
end;
.
- Follow-Ups:
- Re: [Delphi 6] Introspection - iterate through all class members of a given type?
- From: Duncan McNiven
- Re: [Delphi 6] Introspection - iterate through all class members of a given type?
- Prev by Date: delphi.codefetch.com source code search engine launch
- Next by Date: Re: Table does not reflect any changes
- Previous by thread: delphi.codefetch.com source code search engine launch
- Next by thread: Re: [Delphi 6] Introspection - iterate through all class members of a given type?
- Index(es):