Data.DB.TParam.SetObjectValue
Delphi
function SetObjectValue(const AInstance: TObject; const ADataType: TFieldType; AInstanceOwner: Boolean): IParamObject;
C++
_di_IParamObject __fastcall SetObjectValue(System::TObject* const AInstance, const TFieldType ADataType, bool AInstanceOwner);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TParam |
Description
Sets the value of the TParam instance to the given object, using the specified ownership flag.
Call SetObjectValue to set the value of the TParam instance to the object given through the AInstance parameter, using the ownership flag specified by AInstanceOwner. The ADataType parameter specifies the data type of the corresponding field.
If AInstanceOwner is True, the TParamObject corresponding to the TParam instance will also own the object given by AInstance.
SetObjectValue is also used by the TSqlServerMethod component to set the value of the TParam instance to the given TObject instance.