DK for Java | tatukgis.jdk.TGIS_LayerVector.GetFieldEx | Constructors | Fields | Methods | Properties | Events
Retrieves an attribute field value for a shape by unique identifier, preserving Null and Empty values unchanged.
// Java public Variant GetFieldEx( long _uid, java.lang.String _name );
// Oxygene public function GetFieldEx( _uid : TGIS_Uid; _name : String ) : Variant; virtual;
| Type | Description |
|---|---|
| Variant | Field value as Variant. If the stored value is Null or Empty, the method returns that value without applying the field-type default. If the UID is not found, the result is Unassigned. |
PURPOSE: Provides raw attribute access when application logic must distinguish Null or Empty from ordinary values such as 0 or an empty string. This is useful in database-backed vector layers and null-aware attribute processing.
BEHAVIOR: Retrieves the shape by UID if needed and reads the requested field value unchanged. Unlike GetField, no default substitution is performed for Null or Empty values.
CONSTRAINTS: If the UID is not found, the method returns Unassigned.