User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_layersqldb2abstract.macroaddfield_string_string_tgis_fieldtype_integer_integer_boolean_integer

Table of Contents

TGIS_LayerSqlDb2Abstract.macroAddField method

DK11 for Java | tatukgis.jdk.TGIS_LayerSqlDb2Abstract.macroAddField | Constructors | Fields | Methods | Properties

Add new field.

Available also on: Delphi | .NET.

Syntax

// Java
protected void macroAddField(
  java.lang.String _uidname,
  java.lang.String _name,
  TGIS_FieldType _type,
  int _width,
  int _decimal,
  bool _saved,
  int _binary
);
// 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 java.lang.String
String
unique name of the field to be added
_name java.lang.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:23