IModelling.Space

Fore Syntax

Space(Number: Integer): String;

Fore.NET Syntax

Space(Number: integer): string;

Parameters

Number. Required number of spaces.

Description

The Space method returns the string that consists of the specified number of spaces.

Comments

To exclude a source string, use the IModelling.LTrim, IModelling.RTrim and IModelling.Trim methods.

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.Space(2);
    Debug.WriteLine("Space(2) = " + "'" + res + "'");
End Sub UserProc;

After executing the example the console window displays the string that consists of two spaces.

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.Space(2);
    System.Diagnostics.Debug.WriteLine("Space(2) = " + "'" + res + "'");
End Sub;

Example of Use in Expressions

Expression:

Space(2)

Result: "  ".

Expression 2:

Space(4)

Result: Result: "    ".

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