ITableChecks.FindById

Syntax

FindById(Id: String): ITableCheck;

Parameters

Id is constraint identifier.

Description

The FindById method searches and returns an object containing table constraint. The identifier, by which the search is performed, is passed by the Id parameter.

Example

Sub Main;

Var

MB: IMetabase;

Table: ITable;

Checks: ITableChecks;

Check: ITableCheck;

i: Integer;

Begin

MB:=MetabaseClass.Active;

Table:=MB.ItemById("TABLE_1").Bind As ITable;

Checks:=Table.Checks;

Check:=Checks.FindById("TABLE_1_CHECK");

i:=Check.Key;

End Sub Main;

After executing the example, the "i" variable contains the constraint key with the TABLE_1_CHECK identifier. The table identifier is Table_1.

See also:

ITableChecks