RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParam.SetData Method

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

Pascal
procedure SetData(Buffer: Pointer);
C++
__fastcall SetData(void * 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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!