User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.renamefield_widestring_widestring_integer_integer

Table of Contents

ITGIS_LayerVector.RenameField method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.RenameField | Methods | Properties

Renames a field.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public void RenameField(
  WideString _name,
  WideString _newname,
  int _width,
  int _decimal
);
' VisualBasic
Public Sub RenameField(
  ByVal _name As WideString,
  ByVal _newname As WideString,
  ByVal _width As Integer,
  ByVal _decimal As Integer
)
// Oxygene
public
  procedure RenameField(
    _name : WideString;
    _newname : WideString;
    _width : Integer;
    _decimal : Integer
  );

Parameters

Name Type Description
_name WideString name of field to be renamed
_newname WideString new name
_width int
Integer
new width
_decimal int
Integer
new decimal position

Remarks

Use this method to rename a field, which will be marked as changed and the final restructure will be performed upon save. UnRename can be performed by using RevertAll.

Example

Here is a simple procedure to add a field to a new layer or rename existing one.

2022/11/16 01:10

Page Tools