Set variant valued property.
Source position: variants.pp line 356
procedure SetVariantProp( |
Instance: TObject; |
const PropName: AnsiString; |
const Value: Variant |
); |
Instance: TObject; |
PropInfo: PPropInfo; |
const Value: Variant |
); |
Instance |
|
Instance on which to set the variant property. |
PropName |
|
Name of the property to set. |
Value |
|
Value to set property to. |
Instance |
|
Instance on which to set the variant property. |
PropInfo |
|
Pointer to property description (RTTI). |
Value |
|
Value to set property to. |
SetVariantProp sets the value of the variant-types property described by PropInfo or PropName from the Instance to Value.
This function is used as the value for the TypInfo unit's OnSetVariantProp callback. This callback is automatically initialized with the function when the variants unit is used.
|
Access Run-Time Type Information (RTTI). |
|
|
Callback to set a variant property value. |
|
|
Get variant valued property. |
|
|
Return a property value as a variant. |