VirtualDAC

TVirtualAutoIncField.AutoGenerateValue Property

Indicates whether the field values can be automatically generated.

Class

TVirtualAutoIncField

Syntax

property AutoGenerateValue default arAutoInc;

Remarks

Use the AutoGenerateValue property to indicate whether the field values can be automatically generated.

When the property value is arAutoInc, a new incrementing value for the field will be generated automatically when inserting a new record. Otherwise (arNone and arDefault values), the field will be empty. The default value is arAutoInc.

Note: An attempt to change the AutoGenerateValue property when the field dataset is open generates an exception. Thus, AutoGenerateValue only works with persistent field components, which remain when the dataset is closed.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback