CdbField::SetAttributes, GetAttributes Property

Sets or returns a value that indicates one or more characteristics of a CdbField object.

Syntax

VOIDSetAttributes(LONG l);

LONGGetAttributes(VOID);

Set Parameters

Type Example Description
LONG l A Long with one or more of the values listed in Remarks.

Remarks

The valid values are the following:

Constant Description
dbAutoIncrField The field value for new records is automatically incremented to a unique Long integer that can't be changed (in a Microsoft Jet workspace, supported only for Microsoft Jet database(.mdb) tables).
dbDescending The field is sorted in descending (Z to A or 100 to 0) order; this option applies only to a Field object in a Fields collection of an Index object. If you omit this constant, the field is sorted in ascending (A to Z or 0 to 100) order. This is the default value for Index and TableDef fields (Microsoft Jet workspaces only).
dbFixedField The field size is fixed (default for Numeric fields).
dbHyperlinkField The field contains hyperlink information (Memo fields only).
dbSystemField The field stores replication information for replicas; you can't delete this type of field (Microsoft Jet workspaces only).
dbUpdatableField The field value can be changed.
dbVariableField The field size is variable (Text fields only).