How to access Delphi array properties using RTTI

I am familiar with using Delphi RTTI to access โ€œsimpleโ€ properties (ints / enums / strings, etc.), but I cannot figure out how to work with Array properties.

I'm starting to look for array equivalents for GetPropValue / SetPropValue calls. I expect to see similar ones, but I take the additional parameter "index", but I can not find anything in the typinfo help system.

+6
rtti delphi c ++ builder
source share
2 answers

Arrays and array properties cannot have RTTI for them before D2009. But when Barry Kelly spoke at the Delphi Live conference about the extended RTTI system planned for D2010, he mentioned that everyone, including arrays, would have RTTI. So this is a function with which you can look forward to ...

+5
source share

Not sure if this is possible. Array properties cannot be published, which means they cannot have RTTI.

Also, if you look at the components in the object inspector. There are no array properties. All array properties have custom editors (or I must have skipped them).

+3
source share

All Articles