Data.DB.TParam.SetData

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

procedure SetData(Buffer: TValueBuffer); overload;
procedure SetData(Buffer: Pointer); overload; deprecated 'Use overloaded method instead';

C++

void __fastcall SetData(TValueBuffer Buffer)/* overload */;
void __fastcall SetData _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (void * Buffer)/* overload */;

Description

Copies a new value for the parameter in physical database format from Buffer.

Use SetData to set the value of a parameter from a buffer that contains data in the physical database format. The GetData method of a TField object fetches data in the physical database format. Borland Database Engine API calls can also provide data in physical database format.

Note: When the DataType property is ftUnknown, ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftGraphic, ftFmtMemo, ftParadoxOle, ftDBaseOle, or ftTypedBinary, SetData raises an EDatabaseError exception. For BLOB fields, use the SetBlobData method instead.

See Also