IModelling.Min_

Fore Syntax

Min_(A: String; B: String): String;

Fore.NET Syntax

Min_(A: string; B: string): string;

Parameters

A. First compared string.

B. Second compared string.

Description

The Min_ method returns minimum of the two strings by means of characterwise comparison.

Comments

Comparison is case-sensitive.

The function returns Null if at least one of the parameters is equal to Null.

To get maximum of the two strings, use the IModelling.Max_ method.

Fore Example

To execute the example, add a link to the Ms system assembly.

Sub UserProc;
Var
    Func: Modelling;
    res: String;
Begin
    Func := New Modelling.Create;
    res := Func.Min_("Apple""Banana");
    Debug.WriteLine("Min_(""" + "Apple" + """" +
        ", """ + "Banana" + """" + ") = " + res);
End Sub UserProc;

After executing the example the console window displays the minimum string from the Apple and Banana strings.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Ms;

Public Shared Sub Main(Params: StartParams);
Var
    Func: IModelling;
    res: String;
Begin
    Func := New Modelling.Create();
    res := Func.Min_("Apple""Banana");
    System.Diagnostics.Debug.WriteLine("Min_(""" + "Apple" + """" +
        ", """ + "Banana" + """" + ") = " + res);
End Sub;

Example of Use in Expressions

Expression:

Min_("Apple", "Banana")

Result: Apple.

Expression 2:

Min_("Apple", "apple")

Result: Apple.

Use: expressions can be used in model formulas of modeling container, in formulas of time series database calculated series, in formulas of the modeling container that is a child one for time series database in formula editor.

See also:

IModelling | Time Series Database: Calculator| Modeling Container: Editing Regressor or Formula | Expression Editor

See also:

IModelling