Skip to content

Add a getter function for field_type

Heinz Junkes requested to merge github/fork/hir12111/type-getter into 7.0

Created by: hir12111

Some time ago, the DCT related functions were removed from dbStaticLib, leaving no function to retrieve a field type. IIRC the documentation suggests that the fields in DBENTRY and others shouldn't be accessed directly. In this change, I would like to provide a getter function for a field dbf type, I have 2 comments about it:

  • I use a different name for the function to avoid confusion with the deprecated one.
  • I don't check pflddes for NULL, as every use of this functions is always done after calling any form of dbNextField, which makes access safe.

Merge request reports

Loading