ITableTriggers.FindById

Syntax

FindById(Id: String): ITableTrigger;

Parameters

Id is trigger identifier.

Description

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

Example

Sub Main;

Var

MB: IMetabase;

Table: ITable;

Triggers: ITableTriggers;

Trigger: ITableTrigger;

i: Integer;

Begin

MB:=MetabaseClass.Active;

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

Triggers:=Table.Triggers;

Trigger:=Triggers.FindById("TABLE_1_TRIGGER");

i:=Trigger.Key;

End Sub Main;

After executing the example, the "i" variable contains the key of the trigger with the TABLE_1_TRIGGER identifier. The table identifier is Table_1.

See also:

ITableTriggers