User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.getfield_widestring

ITGIS_Shape.GetField method

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

Returns the current shape field value, substituting the field default when the stored value is NULL.

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

Syntax

// C#
public OleVariant GetField(
  WideString _name
);
' VisualBasic
Public Function GetField(
  ByVal _name As WideString
) As OleVariant
// Oxygene
public
  function GetField(
    _name : WideString
  ) : OleVariant;

Parameters

Name Type Description
_name WideString Field name to read.

Result

Type Description
OleVariant Field value for the current shape. If the stored value is NULL, the field default value is returned instead.

Remarks

PURPOSE: Read an attribute value from the current edit shape while avoiding NULL results in callers that expect a usable default.

BEHAVIOR: Performs a case-insensitive field lookup in the current shape context and returns the stored value, or the field default when the stored value is NULL.

CONSTRAINTS: Valid only for the current shape editing context. Use GetFieldEx to preserve NULL values.

References

2026/07/05 01:25

Page Tools