IForeMethodParam.Param

Syntax

Param: String;

Description

The property is read-only.

The Param property returns a name of the parameter.

Example

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

Sub UserProc;
Var
    mb: IMetabase;
    Shp: ISharedParams;
    UserMeth: IForeMethods;
    uMethod: IForeMethod;
    MethParams: IForeMethodParams;
    mParam: IForeMethodParam;
    i: Integer;
Begin
    mb := MetabaseClass.Active;
    Shp := mb.ItemById("SHARED_P").Bind As ISharedParams;
    UserMeth := Shp.Methods;
    uMethod := UserMeth.FindByKey(1);
    If uMethod <> Null Then
        uMethod.Bind;
        MethParams := uMethod.Params;
            For i := 0 To MethParams.Count - 1 Do
                mParam := MethParams.Item(i);
                Debug.WriteLine("Parameter: " + mParam.Param);
            End For;
    End If;
End Sub UserProc;

The custom method with the "1" key is initialized after executing this example. The name of its parameters is displayed in the console window.

See also:

IForeMethodParam