Return a property value as a variant.
Source position: variants.pp line 352
function GetPropValue( |
Instance: TObject; |
PropInfo: PPropInfo; |
PreferStrings: Boolean |
):Variant; overload; |
Instance |
|
Instance from which to get property value. |
PropInfo |
|
Pointer to propety information (RTTI). |
PreferStrings |
|
Try to cast to string. |
Property value as variant.
GetPropValue returns the value of the property described by PropInfo from the Instance. The property value is returned as a variant type.
when PreferStrings is true, the implementation will tend to cast to a string-valued variant when a conversion must be done.
This function is used as the value for the TypInfo unit's OnGetPropValue callback. This callback is automatically initialized with the function when the variants unit is used.
|
Access Run-Time Type Information (RTTI). |
|
|
Callback to get a property value as a variant. |
|
|
Set a property value as a variant. |