IMetabase.Mode

Syntax

Mode: ApplicationMode;

Description

The Mode property determines by which method the connection to the repository was established.

Comments

The repository connection can be established from the client workstation of Foresight Analytics Platform desktop application or web application.

Example

Executing the example requires a form containing the Button component with the Button1 identifier. This example is a handler of the OnClick event for the Button1 component.

Add links to the Metabase, Ui system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
Begin
    MB := MetabaseClass.Active;
    If MB.Mode = ApplicationMode.Web Then
        WinApplication.InformationBox(This function is not available in the web application);
        Else
            WinApplication.InformationBox("This function is available on repository connection from client workstation of Foresight Analytics Platform desktop application.");
    End If;
End Sub Button1OnClick;

As a result of the execution of the example the following message is displayed:

See also:

IMetabase