views:

117

answers:

3

Sorry to ask something so basic, but I just can't find it.

I found some example code which seems to do exactly what I want, but it doesn't include a uses clause.


procedure FilterProps(Sender: TObject; Prop: TProperty; var Result: boolean); 

undeclared indentifier: TProperty

+1  A: 

The Delphi 7 help does not mention TProperty. Maybe the sample code declares the TProperty itself?

If TProperty has something to do with property editors etc., then maybe you can try the DesignIntf or DesignEditors unit.

The_Fox
It is something to do with property editors, but those suggestions don't seem to help :-(
Mawg
+2  A: 

TProperty is part of the D2010 RTTI property information. The D7 RTTI information is in the unit TypInfo.

Ritsaert Hornstra
A: 

The answer given by the author of the code sample when I managed to contact him was unit PropertyList. That compiles for me.

Mawg