Item(Index: Integer): ITableCheck;
Index is constraint index.
The Item property returns an object containing constraint of the table.
Sub Main;
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 Main;
After executing the example, the "s" variable contains identifier of the first table constraint. The table identifier is Table_1.
See also: