IWinApplication.Params

Syntax

Params: IWinApplicationParams;

Description

The Params property returns the collection of parameters, with which the platform is started.

Comments

The collection of parameters contains elements that were specified in the startup string. It consists of the keys and parameters passed with the keys.

Example

Executing the example requires a form with a button and the Memo component named Memo1. The form has the SRART_F identifier.

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

If the platform is running by means of the command: studio.exe Warehouse/Warehouse@Warehouse:START_F -splash "c:\splash.bmp" -customparam "test", the form is started after the repository connection is established. On clicking the button the Memo1 component shows values of separate parameters, which are used in the startup string.

See also:

IWinApplication | Launching Platform from the Command Line Using Keys