[Lazarus] how about a "HasProperty()" property?

Mailing Lists mailinglists at geldenhuys.co.uk
Mon Jan 6 15:15:08 CET 2014





On Sunday 05/01/2014 at 11:51 pm, Alejandro Gonzalo  wrote:
>
>
>
>
>
> Is there someway else to do that?
Yes, simply use RTTI (Runtime Type Information). See the typinfo unit. 
I've also created an unit for the tiOPF project - it is full of 
extended RTTI helper methods that could make the work much easier. See 
the tiRTTI.pas unit. 
[http://sourceforge.net/p/tiopf/code/ci/tiopf2/tree/Core/tiRTTI.pas] 
Those helper/utility methods could easily be adapted to exclude any 
tiOPF dependencies.

Regards,
  Graeme







More information about the Lazarus mailing list