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/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to