IForeMethods.Remove

Syntax

Remove(Index: Integer);

Parameters

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

Description

The Remove method removes a custom 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;

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

UserMeth.Remove(i);

End For;

End Sub Main;

All custom methods are removed in the area of global parameters after executing this example.

See also:

IForeMethods