0
votes
Vote UpVote

Getting the class from an TRttiProperty by using MetaclassType

The Wiert Corner – Basically I learned that I should not only look for ClassType, but also for MetaclassType: [WayBack] Not a major problem, but given that xProp is a TRttiProperty instance is there a better way to get the ClassType of a property that is tkClass? – Chad Hower – Google+: Chris Rolliston The System.Rtti way is this – x := xProp.PropertyType.AsInstance.MetaclassType; Been in since TRttiContext was first added, IIRC. It indeed has been documented since Delphi 2010: [Archive.is] Rtti.TRttiClassRefType.MetaclassType – RAD Studio VCL Reference –jeroen
Favorite? Off-Topic? jpluimers @ 2019-01-09 18:05

Statistics

Visits: 152
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)