VirtualDAC

AddField

Adds a new TFieldDef object with the name determined by Name.

Unit

Syntax

Remarks

Call the AddField method to add a new TFieldDef object with the name determined by Name. FieldType can be ftString, ftWideString, ftSmallint, ftInteger, ftAutoInc, ftWord, ftBoolean, ftLargeint, ftFloat, ftCurrency, ftDate, ftTime, ftDateTime, ftBlob, or ftMemo. When you add ftString or ftWideString field you should specify Size of the string. When the ftAutoInc field type is set, a field of the special TVirtualAutoIncField type will be created in the virtual table, which can generate auto-increment field values.

See Also

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