RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TypInfo.IsStoredProp Function

Determines if a specified component property has the stored attribute.

Pascal
function IsStoredProp(Instance: TObject; const PropName: string): Boolean; overload;
function IsStoredProp(Instance: TObject; PropInfo: PPropInfo): Boolean; overload;
C++
Boolean IsStoredProp(TObject * Instance, const AnsiString PropName);
Boolean IsStoredProp(TObject * Instance, PPropInfo PropInfo);

TypInfo

IsStoredProp returns true if the specified property is saved in the form file. The stored attribute is set true by default : only those that have the keyword stored defined as false do not.  

In one form of this function, the object Instance's property is defined by a PropInfo record. GetPropInfo and GetPropList can be used to obtain such a record.  

In the other form of this function, the name of the property, PropName, is explicitly given.  

In both forms of the function, the value of the stored attribute is returned. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!