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.
// C# public OleVariant GetField( WideString _name );
' VisualBasic Public Function GetField( ByVal _name As WideString ) As OleVariant
// Oxygene public function GetField( _name : WideString ) : OleVariant;
| Name | Type | Description |
|---|---|---|
| _name | WideString | Field name to read. |
| Type | Description |
|---|---|
| OleVariant | Field value for the current shape. If the stored value is NULL, the field default value is returned instead. |
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.