[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Append a new record to the dataset and fill with data
Source position: db.pas line 1669
public procedure TDataSet.AppendRecord( |
const Values: array of Const |
); |
Values |
|
Values for all fields, in correct order |
AppendRecord first calls Append to add a new record to the dataset. It then copies the values in Values to the various fields (using TDataset.SetFields) and attempts to post the record using TDataset.Post. If all went well, the result is that the values in Values have been added as a new record to the dataset.
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.
|
Append a new record to the data |
|
|
Set a number of field values at once |
|
|
Post pending edits to the database. |