FireDAC.Comp.DataSet.TFDAutoIncField.AutoIncrementSeed
| [–] Properties | |
|---|---|
| Type: property | |
| Visibility: published | |
| Source: FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp
| |
| Unit: FireDAC.Comp.DataSet | |
| Parent: TFDAutoIncField | |
Delphi
property AutoIncrementSeed: Integer read FAutoIncrementSeed
C++
__property int AutoIncrementSeed = {read=FAutoIncrementSeed, write=SetAutoIncrementSeed, default=-1};
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;