FireDAC.Comp.DataSet.TFDAutoIncField.AutoIncrementSeed
Delphi
property AutoIncrementSeed: Integer read FAutoIncrementSeed
C++
__property int AutoIncrementSeed = {read=FAutoIncrementSeed, write=SetAutoIncrementSeed, default=-1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDAutoIncField |
Description
Specifies the initial value for the client-side auto-incrementing value.
Set AutoIncrementSeed to a value that will be the first autogenerated value for the new record column.
FireDAC recognizes negative auto-incrementing values, as explicitly generated by the dataset at the client side. The default value is -1. The AutoIncrementSeed property can be changed only if the dataset is inactive.
After the dataset is closed, the internal auto-incrementing value generator is set to the AutoIncrementSeed value.
TFDAutoIncfield(FDQuery1.FieldByName('ID')).AutoIncrementSeed := -1000;