IWinApplication.CustomParams

Syntax

CustomParams: String;

Description

The CustomParams property returns custom parameters passed on platform startup with the -Customparam key.

Example

Executing the example requires a form and a button on the form. The form has the SRART_F identifier.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    WinApp: IWinApplication;
Begin
    WinApp := WinApplication.Instance;
    Self.Text := WinApp.CustomParams;
End Sub Button1OnClick;

If the platform is running by means of the command: studio.exe Warehouse/Warehouse@Warehouse:START_F -customparam "test", the form is started after the repository connection is established. On clicking the button the form header displays the value passed with the -Customparam key.

See also:

IWinApplication | Launching Platform from the command line using keys