AutoInc fields in TDbf are treated like Integer fields
If you have a DBF file level 31 (Visual FoxPro), it supports AutoInc fields. Thede aren't recognized and/or treated like that by the default TDbf component.
- Operating system: Any
- Processor architecture: Any
- Compiler version: trunk
- Device: All
Steps to reproduce
Add a TDbf component to a form, fill in the location and name of the attached DBF file and add a new record, through code or a navigator.
What is the current bug behavior?
The value of the AutoInc field is NULL and the storage location of the next AutoInc value in the file isn't updated.
What is the expected (correct) behavior?
That an AutoInc field contains the next, unique value after appending and posting a new record.
See attached fix (made by korba812 and tested by us both).