[fpc-pascal] detecting and accessing a properties 'stored' value via RTTI
Graeme Geldenhuys
graemeg.lists at gmail.com
Wed Sep 10 12:00:33 CEST 2008
Hi,
I need to find out if I need to store a property value or note. The
property is published and has the 'stored' directive / storage
specifier.
I know how to test if the property value is equal to the propertie's
default value. But how to I determine the default value if the storage
specifier 'stored' is used?
eg:
TMyObject = class(TPersistent)
published
property Prop1: boolean read FProp1 write FProp1 default True;
property SomeProp: booleand
read GetSomeProp
write SetSomeProp
stored IsSomePropStored;
end;
I know how to handle 'Prop1', but don't know how to determine the
default value or result of IsSomePropStored for the 'SomeProp'
property.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list