Data.DB.TParam.SetObjectValue

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TParam

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);

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.

See Also