In the case of DBF, this is important because standard numeric fields do not know NULL value and the zero (0) value is used instead. Most Auto-Inc implementations in DBF number from 1.
OK. Accepted.
Didn't know that, since the last time i was in "contact" with dBase was 1996 in economic school
EDIT: Found something in "...\source\packages\fcl-db\src\dbase\dbf_dbffile.pas"
Line 854 (FPC3.2.2 - 32Bit)
// Update our field list
with FFieldDefs.AddFieldDef do
begin
Assign(lFieldDef);
Offset := lFieldOffset;
AutoInc := 0;
end;
There.
AutoInc:=0;
and looking further through the file, any mention of "AutoInc" that has a direct assignment, assigns "0", even "local" variables containing "AutoInc" in its name
https://www.freepascal.org/daily/packages/fcl-db/dbf_fields/tdbffielddef.htmlAs far as i understand it: If you create everything from FPC-Code, you should be able to set AutoInc to whatever Startvalue you want (Don't forget AutoIncStep) when you create the FieldDefs.