IForeMethods.Item

Syntax

Item(Index: Integer): IForeMethod;

Parameters

Index is an index of the custom method in the collection.

Description

The property is read-only.

The Item property returns a method from the collection by its index.

Example

Executing the example requires that the repository contains an area of the global parameters with the SHARED_P identifier.

Sub Main;

Var

mb: IMetabase;

Shp: ISharedParams;

UserMeth: IForeMethods;

uMethod: IForeMethod;

i: Integer;

Begin

mb := MetabaseClass.Active;

Shp := mb.ItemById("SHARED_P").Bind As ISharedParams;

UserMeth := Shp.Methods;

For i := 0 To UserMeth.Count - 1 Do

uMethod := UserMeth.Item(i);

Debug.WriteLine(uMethod.Name);

End For;

End Sub Main;

The names of the custom methods contained in the area of global parameters are displayed in the console window after executing this example.

See also:

IForeMethods