TDataSet.AppendRecord procedure
Append a new record to the dataset and fill with data.
Declaration
procedure AppendRecord(const Values: Array of const)Arguments
Values | Values for all fields, in correct order. |
Description
AppendRecord first calls
Append to add a new record to the dataset. It then copies the values in
Values
to the various fields (using
SetFields) and attempts to post the record using
Post.
If all went well, the result is that the values in
Values have been added as a new record to the dataset.Errors
Various errors may occur (not supplying a value for all required fields, invalid values) and may cause an exception. This may leave the dataset in editing mode.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
