IForeMethods.Count

Syntax

Count: Integer;

Description

The property is read-only.

The Count property returns the number of methods in the collection.

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