Data.DB.TReferenceField.SetVarValue

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TReferenceField

Delphi

procedure SetVarValue(const Value: Variant); override;

C++

virtual void __fastcall SetVarValue(const System::Variant &Value);

Description

Sets the value of the owned fields with the elements of the given variant array.

Data.DB.TReferenceField.SetVarValue inherits from Data.DB.TObjectField.SetVarValue. All content below this line refers to Data.DB.TObjectField.SetVarValue.

Sets the value of the owned fields with the elements of the given variant array.


SetVarValue sets the value of the owned fields with the elements of Value. Value is a variant containing an array of values.

On the assumption that the number of elements from the Value variant array is not greater than the number of owned fields (otherwise, the excess elements are ignored), the SetVarValue method sets the owned fields with the corresponding elements from the Value array.

See Also