Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • FPC Source FPC Source
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,256
    • Issues 1,256
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 46
    • Merge requests 46
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • FPC
  • FPC
  • FPC SourceFPC Source
  • Issues
  • #39425
Closed
Open
Created Nov 02, 2021 by Frank Rademakers@frank.rademakers

AutoInc fields in TDbf are treated like Integer fields

Summary

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.

System Information

  • 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.

Possible fixes

See attached fix (made by korba812 and tested by us both).

EMPLOYEE.7z dbfautoincvfp2.diff

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking