| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Set the parameter value from a buffer
Source position: db.pas line 1249
public procedure TParam.SetData(  | 
Buffer: Pointer  | 
);  | 
Buffer  | 
  | 
Buffer to read data from  | 
SetData performs the reverse operation of TParam.GetData: it reads the parameter value from the memory area pointed to by Buffer. The size of the data read is determined by TParam.GetDataSize and the type of data by TParam.DataType : it is the same storage mechanism used by TField, and so can be used to copy the value from a TDataset record buffer.
Not all field types are supported. If an unsupported field type is encountered, an EDatabaseError exception is raised.
  | 
Base class for records-based data-access  | 
|
  | 
Get the parameter value from a memory buffer  | 
|
  | 
Data type of the parameter  | 
|
  | 
Return the size of the data.  |