User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.renamefield_string_string_integer_integer

Table of Contents

TGIS_LayerVector.RenameField method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.RenameField | Constructors | Fields | Methods | Properties | Events

Rename a field.

Available also on: Delphi | Java | ActiveX.

Syntax

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

Parameters

Name Type Description
_name string
String
name of field to be renamed
_newname string
String
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 final restructure will be performed upon save. Unrename can be performed by RevertAll.

Example

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

2019/06/26 01:15