You are not logged in.
Hi Arnaud,
in chapter 5.1.7 (Record Fields) of the documentation it's written:
"You may call Props.RegisterCustomRTTIRecordProperty() for a record containing reference-counted fields like string, variant or nested dynamic arrays."
Do you have an example of how to use that method?
The example with the TGUID in that chapter is working. As soon as I try to adapt that concept to a record that contains a RawUTF8 field or a dynamic array, it stops working (as expected because it's described in the documentation). But I can't figure out how to use the RegisterCustomRTTIRecordProperty method to make it work...
Martin
Offline
Ok, scratch the above...
I figured it's as easy as one is used to with mORMot ;-)
Calling RegisterCustomRTTIRecordProperty like this:
Props.RegisterCustomRTTIRecordProperty(self, TypeInfo(TVOAddress), 'Address', @TSQLCustomer(nil).FAddress);
does the job.
Thanks for this great framework!
Martin
Offline