On 08.06.2014 17:03, Graeme Geldenhuys wrote:
I've also introduced an enhanced GetPropInfo() with a signature as
follows:
function tiGetPropInfo(AClass: TClass; PropPath: string; PInstance:
Pointer): PPropInfo;
Might also profit from a declaration as "inline" :)
This one might not work as inline, as it is much more involved. Also
note the PropPath property. tiOPF can handling calls like:
tiGetPropInfo(MyObject, 'Contact.Address.PostCode', ...)
It will iterate through the MyObject.Contact.Address.PostCode
properties, obviously doing NULL checks along the way. Hence the name
"PropPath" (property path).
Ah ok. I thought it was also a more simpler wrapper call. Then not :P
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal