[fpc-pascal] ObjectBinaryToText - how to write only selected property?
graemeg.lists at gmail.com
Mon May 7 14:12:24 CEST 2012
On 5 May 2012 18:15, Krzysztof <dibo20 at wp.pl> wrote:
> I could use RTTI and TypeInfo, but
> ObjectBinaryToText can parse property hierarchy
> (Propery1.Subproperty1.Color etc).
Out of interest, I have written an "extended" RTTI unit which is used
in the tiOPF project. All the functions in that unit support what I
call "property paths", which means you can get and set properties like
'myobject.Propery1.Subproperty1.Color' on a object. The unit is called
tiRTTI.pas, and tiOPF is hosted on SourceForge. The unit handles nil
valued sub-properties correctly as well. The tiRTTI unit has minimal
dependency on the other tiOPF units, so it will be very easy to make
it a pure stand-alone unit.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-pascal