How to get whether a TRttiField is a class field?

Comments

  1. You can use "TRttiField .FieldType.IsInstance".

    ReplyDelete
  2. Mahdi Safsafi That would tell you if the type of the field is a class.

    What Chang Guangyu is asking is not possible because class fields don't have RTTI which means all TRttiFields are instance fields.

    ReplyDelete
  3. Stefan Glienke Thank you. I think Delphi should add it to RTTI.

    ReplyDelete

Post a Comment