API:Data.DB.TFieldDefs.Add

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Add(const Name: string; DataType: TFieldType; Size: Integer = 0;  Required: Boolean = False);

C++

HIDESBASE void __fastcall Add(const System::UnicodeString Name, TFieldType DataType, int Size = 0x0, bool Required = false);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.DB.pas
Data.DB.hpp
Data.DB TFieldDefs

Description

Creates a new TCollectionItem instance and adds it to the Items array.

Data.DB.TFieldDefs.Add inherits from System.Classes.TCollection.Add. All content below this line refers to System.Classes.TCollection.Add.

Creates a new TCollectionItem instance and adds it to the Items array.

Call Add to create an item in the collection. The new item is placed at the end of the Items array.

Add returns the new collection item.

See Also