RAD Studio VCL Reference
|
Creates a new field definition object and adds it to the Items property.
procedure Add(const Name: string; DataType: TFieldType; Size: Integer = 0; Required: Boolean = False);
__fastcall Add(const AnsiString Name, TFieldType DataType, int Size = 0, Boolean Required = False);
Add is provided for backward compatibility. The recommended way to add new field definitions to the Items property array is using the AddFieldDef method.
Add uses the values passed in the Name, DataType, Size, and Required parameters and assigns them to the respective properties of the new field definition object.
If a field definition with same name already exists, Add raises an EDatabaseError exception.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|