UniqueConstraint

Top  Previous  Next

Returns a TUniqueConstraint object from the unique constraints array.

 

Syntax:

function UniqueConstraint(ItemIndex: Integer): TUniqueConstraint;

 

Parameters:

ItemIndex is the ordinal position of the unique constraint you want to retrieve from the unique constraints array.  You can get the number of unique constraints in the table using the UniqueConstraintCount method.

 

The return value is a TUniqueConstraint type.

 

Example:

 

scripting_ttable_uniqueconstraint