Show contents 

Db > Db Assembly Interfaces > ITableChecks > ITableChecks.Item

ITableChecks.Item

Syntax

Item(Index: Integer): ITableCheck;

Parameters

Index is constraint index.

Description

The Item property returns an object containing constraint of the table.

Example

Sub UserProc;
Var
    MB: IMetabase;
    Table: ITable;
    Checks: ITableChecks;
    Check: ITableCheck;
    s: String;
Begin
    MB:=MetabaseClass.Active;
    Table:=MB.ItemById("TABLE_1").Bind As ITable;
    Checks:=Table.Checks;
    Check:=Checks.Item(0);
    s:=Check.Id;
End Sub UserProc;

After executing the example, the "s" variable contains identifier of the first table constraint. The table identifier is Table_1.

See also:

ITableChecks