| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
Save the field data
Source position: db.pas line 387
| public procedure TField.SetData( | 
| Buffer: Pointer | 
| ); overload; | 
| Buffer: Pointer; | 
| NativeFormat: Boolean | 
| ); overload; | 
| Buffer | 
 | Buffer to copy field value from | 
| Buffer | 
 | Buffer to copy field value from | 
| NativeFormat | 
 | Is the provided data in native format | 
SetData saves the value of the field data in Buffer to the dataset internal buffer. The Buffer pointer should point to a memory buffer containing the data for the field in the correct format. If the NativeFormat parameter is true, then date/time formats should use the TDateTime format.
There should normally not be any need to call SetData directly: it is called by the various setter methods of the AsXXX properties of TField.
No validity checks are performed on Buffer: it should point to a valid memory area, and should be large enough to contain the value of the field. Failure to provide a buffer that matches these criteria will result in an exception.
| 
 | Get the data from this field | |
| 
 | Value of the field as a variant value |