ForeignKey

Top  Previous  Next

Returns a TForeignKey object from the foreign keys array.

 

Syntax:

function ForeignKey(ItemIndex: Integer): TForeignKey;

 

Parameters:

ItemIndex is the ordinal position of the foreign key you want to retrieve from the foreign keys array.  You can get the number of columns in the table using the ForeignKeyCount method.

 

The return value is a TForeignKey type.

 

Example:

 

scripting_ttable_foreignkey