TMemDataset.SetFieldData procedure
Sets the value for a field in the record buffer.
Declaration
procedure SetFieldData(Field: TField; Buffer: Pointer); overrideArguments
Field | Field being updated in the record. |
Buffer | Field value to a store in the record buffer. |
Description
SetFieldData is used to set the specified value for the specified field in the record buffer. SetFieldData implements the virtual method defined in the ancestor class.
SetFieldData creates a temporary TRecordBuffer instance used to captive the active record buffer by calling MDSGetActiveBuffer. No actions are performed in the method if MDSGetActiveBuffer returns False.
SetFieldData uses the specified Field to validate the value in Buffer. If the validated value is Nil, the NULL mask in the record buffer is set. Valid values cause the NULL Mask to be cleared. Terminating #0 values in a string field are omitted in the record buffer. For lookup and calculated fields, the data size for the field is copied to the record buffer.
A field change data event is signalled when State contains a value other than dsCalcFields, dsFilter, or dsNewValue.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
