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

Renames a field.

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

Syntax

// C#
public virtual void RenameField(
  string _name,
  string _newname,
  int _width,
  int _decimal
);
' VisualBasic
Public Overridable 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 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:34

Page Tools