DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.SetField | Methods | Properties
Sets the value of a field in the current shape editing context.
// 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 );
| Name | Type | Description |
|---|---|---|
| _name | WideString | Field name to modify. |
| _val | OleVariant | New field value. |
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.