IWinApplicationParams.Item

Syntax

Item(Index: Integer): String;

Parameters

Index - index of the parameter, with which the platform is started.

Description

The Item property returns parameter value, with which the application is started. The parameters list includes an account that is used to connect to repository, keys and their values.

Example

Executing the example requires a form with a button and the Memo component named Memo1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WinApp: IWinApplication;
    Params: IWinApplicationParams;
    i: Integer;
Begin
    WinApp := WinApplication.Instance;
    Params := WinApp.Params;
    Memo1.Lines.Clear;
    For i := 0 To Params.Count - 1 Do
        Memo1.Lines.Add(Params.Item(i));
    End For;
End Sub Button1OnClick;

After executing the example and clicking the button the Memo1 component shows values of parameters, with which the platform is started.

See also:

IWinApplicationParams

Launching Platform from the Command Line Using Keys