User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layersqldb2abstract.macroaddfield_string_string_tgis_fieldtype_integer_integer_boolean_integer

Table of Contents

TGIS_LayerSqlDb2Abstract.macroAddField method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerSqlDb2Abstract.macroAddField | Constructors | Fields | Methods | Properties

Add new field.

Available also on: Delphi | Java.

Syntax

// C#
protected void macroAddField(
  string _uidname,
  string _name,
  TGIS_FieldType _type,
  int _width,
  int _decimal,
  bool _saved,
  int _binary
);
' VisualBasic
Protected Sub macroAddField(
  ByVal _uidname As String,
  ByVal _name As String,
  ByVal _type As TGIS_FieldType,
  ByVal _width As Integer,
  ByVal _decimal As Integer,
  ByVal _saved As Boolean,
  ByVal _binary As Integer
)
// Oxygene
protected
  procedure macroAddField(
    _uidname : String;
    _name : String;
    _type : TGIS_FieldType;
    _width : Integer;
    _decimal : Integer;
    _saved : Boolean = True;
    _binary : Integer = 0
  );

Parameters

Name Type Description
_uidname string
String
unique name of the field to be added
_name string
String
name of field to be added
_type TGIS_FieldType type of field
_width int
Integer
width of field
_decimal int
Integer
decimal places
_saved bool
Boolean
True, if field exist in an original file
_binary int
Integer
binary width (used only for TAB/DAT files)

Remarks

This method is used only for internal use on layer reading.

2019/02/08 01:31