| 
       TurboDB VCL Component Library TTdbForeignKeyDefs.Add  | 
  
| Previous Top Next | 
Creates a new foreign key and adds it to the collection.
Delphi Syntax
function Add(ParentTableName, ParentFields, ChildFields: string; UpdateAction: TTdbForeignKeyAction = tiaReject; DeleteAction: TTdbForeignKeyAction = tiaReject): TTdbForeignKeyDef; overload;
C++ Syntax
virtual TTdbForeignKeyDef* __fastcall Add(const System::String ParentTableName, const System::String ParentFields, const System::String ChildFields, TTdbForeignKeyAction UpdateAction = tiaReject, TTdbForeignKeyAction DeleteAction = tiaReject);
Description
Use Add to create a foreign key for a table within one function call.