Getting properties with typinfo.pas
Posted on 1998-04-23
I have an object, of unknown type. I want a list of the published property names. To get the number of items, I use:
nProps := GetTypeData(MyObject.ClassInfo)^.PropCount;
I get each property name with:
for PropNo := 0 to nProps-1 do begin
This works for all properties except record types (eg TRect). They're just not included in the list, or the count of properties....