Attributes of Fields

Constant

Field attribute

gdbFieldAttrIndexed

Indexed field. An index is constructed for an indexed field in GDB or external database in order to speed up searching records by values.

gdbFieldAttrUnique

Unique field. The GIS kernel or external database ensures uniqueness of field values in table records. For a unique field, an index is constructed in GDB that enables to speed up searching records. A unique field has "Indexed field" (gdbFieldAttrIndexed) and "Non-empty field" (gdbFieldAttrRequired) attributes automatically. This attribute can be set if the Field object does not belong to the Table::Fields collection or the GDB table contains no records.

gdbFieldAttrRequired

Non-empty field. The GIS kernel or external database ensures that a field value is not empty when adding a record to a table. This attribute can be set if the Field object does not belong to the Table::Fields collection or the GDB table contains no records. The attribute value set corresponds to the constant gdbExtDBNullableNoNulls returned by the Field::Nullable property.

gdbFieldAttrCrypt

Encrypted field. Field values are stored encrypted in GDB.

gdbFieldAttrAutoIncr

Autoincrement field. An application can set a value for the field of the given type when adding a record, but it cannot modify the field value. A unique value is set to the field of the given type. An increment and an initial value depend on an ODBC data source. You cannot set or cancel this attribute.

gdbFieldAttrCaseSensitive

Case sensitive field. Case sensitive search and sorting by field values. You cannot set or cancel this attribute.

gdbFieldAttrMoney

Money field. The field of the given type has the predefined precision (see the Field::Precision property) and scale (see the Field::Scale property) depending on an ODBC data source. You cannot set or cancel this attribute.

gdbFieldAttrUnsigned

Unsigned field. This attribute is set if a numeric field is unsigned or a field is not numeric. You cannot set or cancel this attribute.