Get link Facebook X Pinterest Email Other Apps - October 28, 2016 How to get whether a TRttiField is a class field? Get link Facebook X Pinterest Email Other Apps Comments Mahdi SafsafiOctober 28, 2016 at 2:43 AMYou can use "TRttiField .FieldType.IsInstance".ReplyDeleteRepliesReplyStefan GlienkeOctober 28, 2016 at 4:36 AMMahdi 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.ReplyDeleteRepliesReply丽丽乌克October 28, 2016 at 5:22 AMStefan Glienke Thank you. I think Delphi should add it to RTTI.ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
You can use "TRttiField .FieldType.IsInstance".
ReplyDeleteMahdi Safsafi That would tell you if the type of the field is a class.
ReplyDeleteWhat Chang Guangyu is asking is not possible because class fields don't have RTTI which means all TRttiFields are instance fields.
Stefan Glienke Thank you. I think Delphi should add it to RTTI.
ReplyDelete