FindByKey(Key: Integer): IMetabaseObjectParam;
Key — key of a parameter of repository object.
The FindByKey method enables the user to find a parameter by the specified Key key.
In case of successful search the method returns parameters settings, otherwise it returns Null.
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 this example the Name variable contains a name of a parameter that key is "3".
See also: