User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_layervector.prepareexportfieldnames_integer_boolean

Table of Contents

TGIS_LayerVector.PrepareExportFieldNames(Integer; Boolean) method

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

Prepares field names to export.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  procedure PrepareExportFieldNames(
    const _maxwidth : Integer;
    const _forced : Boolean
  ); overload; virtual;
// C++ Builder
public:
  virtual void PrepareExportFieldNames(
    const int _maxwidth,
    const bool _forced
  ) /* overload */;

Parameters

Name Type Description
_maxwidth Integer max width of field; should be >= 4
_forced Boolean if _false (default) export names will be constructed for new fields; otherwise saved fields will be ignored

Remarks

Use this method to prepare an export of field names to meet maxwidth criteria. The procedure will also perform basic name adjustment (remove non-ascii letters, 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 exists, then the field will be renamed to nameXX (where XX means 00, 01, etc. in hexadecimal).

2020/05/07 01:09

Page Tools