Data.DB.TParam.SetData
Delphi
procedure SetData(Buffer: TValueBuffer); overload;
procedure SetData(Buffer: Pointer); overload; deprecated 'Use overloaded method instead';
C++
void __fastcall SetData(System::DynamicArray<System::Byte> Buffer)/* overload */;
void __fastcall SetData _DEPRECATED_ATTRIBUTE1("Use overloaded method instead") (void * Buffer)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DB.pas Data.DB.hpp |
Data.DB | TParam |
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.