User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.setfield_widestring_olevariant

Table of Contents

ITGIS_Shape.SetField method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.SetField | Methods | Properties

Sets the value of a field in the current shape editing context.

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

Syntax

// C#
public void SetField(
  WideString _name,
  OleVariant _val
);
' VisualBasic
Public Sub SetField(
  ByVal _name As WideString,
  ByVal _val As OleVariant
)
// Oxygene
public
  procedure SetField(
    _name : WideString;
    _val : OleVariant
  );

Parameters

Name Type Description
_name WideString Field name to modify.
_val OleVariant New field value.

Remarks

PURPOSE: Update attribute data for the current shape during insert or edit operations.

BEHAVIOR: Performs a case-insensitive field lookup, converts _val to the target field type when possible, stores the new value, and marks the field as modified for later save or revert logic.

CONSTRAINTS: Valid only in the current shape editing context. Read-only fields cannot be modified, and incompatible values raise an exception.

References

2026/07/05 01:25

Page Tools