Upper(Str: String): String;
Upper(Str: string): string;
Str. String.
The Upper method returns the specified string transformed into upper case.
To get the string transformed into lower case, use the IModelling.Lower method.
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.Upper("CaLcUlAtOr");
Debug.WriteLine("Upper(""" + "CaLcUlAtOr" + """" + ") = " + res);
End Sub UserProc;
After executing the example the console window displays the CaLcUlAtOr string transformed into upper case.
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.Upper("CaLcUlAtOr");
System.Diagnostics.Debug.WriteLine("Upper(""" + "CaLcUlAtOr" + """" + ") = " + res);
End Sub;
Expression:
Upper("CaLcUlAtOr")
Result: CALCULATOR.
Expression 2:
Upper("ProductVersion")
Result: PRODUCTVERSION.
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: