IMetabaseObjectParams.FindByKey

Syntax

FindByKey(Key: Integer): IMetabaseObjectParam;

Parameters

Key — key of a parameter of repository object.

Description

The FindByKey method enables the user to find a parameter by the specified Key key.

Comments

In case of successful search the method returns parameters settings, otherwise it returns Null.

Example

Sub Main;

Var

MB: IMetabase;

Obj: IMetabaseObject;

Pars:IMetabaseObjectParams;

Par:IMetabaseObjectParam;

Name:string;

Begin

MB:=MetabaseClass.Active;

Obj:= mb.Item(mb.GetObjectKeyById("Test_table")).Edit;

Pars:=Obj.Params;

Par:=Pars.FindByKey(3);

Name:=Par.Name;

End Sub Main;

After executing the example the Name variable contains a name of a parameter that key is "3".

See also:

IMetabaseObjectParams