User Tools

Site Tools


Table of Contents

TGIS_LayerVector.PrepareExportFieldNames(Integer) method

DK11 for Delphi | GisLayerVector.TGIS_LayerVector.PrepareExportFieldNames | Overloads | Constructors | Fields | Methods | Properties | Events

Prepare export field names.

Available also on: .NET | Java | ActiveX.


// Delphi
  procedure PrepareExportFieldNames(
    const _maxwidth : Integer
  ); overload; virtual;
// C++ Builder
  virtual void PrepareExportFieldNames(
    const int _maxwidth
  ) /* overload */;


Name Type Description
_maxwidth Integer max width of field; should be >= 4


Use this method to prepare export field names to meet maxwidth criteria. Procedure will also perform basic name adjustment (remove non-ascii letter etc).

If a field name is empty then it will be named to 'FIELD'.

If first letter of the field is not alphanumeric, then the first letter will be changed to 'F'.

If a field is longer then a specified value, then the field will be truncated.

If a field after such changes already exist, then the field will be renamed to nameXX (where XX means 00, 01 etc in hexadecimal).

2018/02/17 00:09