IValidationExecuteSettings.Warnings

Fore Syntax

Warnings: IStringList;

Fore.NET Syntax

Warnings: Prognoz.Platform.Interop.ForeCollections.StringList;

Description

The Warnings property returns validation filter warnings.

Comments

Warnings are presented as a string array.

Fore Example

The example is the function, to the input of which the validation filter is passed: parameter val. Add links to the Ms, Cubes system assemblies.

Function ExecuteVal(val: IValidationFilter): IValidationExecRun;
Var
    sett: IValidationExecuteSettings;
    res: IValidationExecRun;
    s: string;
Begin
    sett := New ValidationExecuteSettings.Create;
    res := val.Execute(sett);
    Debug.WriteLine(======Messages=====);
    For Each s In sett.Messages Do
        Debug.WriteLine(s);
    End For;
    Debug.WriteLine(======Warnings=====);
    For Each s In sett.Warnings Do
        Debug.WriteLine(s);
    End For;
    Return res;
End Function ExecuteVal;

After executing the function returns the data of validation calculation. The messages and warnings of validation filter are displayed in the console window.

Fore.NET Example

The example is the function, to the input of which the validation filter is passed: parameter val.

Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Ms;

Public Shared Function ExecuteVal(val: IValidationFilter): IValidationExecRun;
Var
    sett: ValidationExecuteSettings;
    res: IValidationExecRun;
    s: string;
Begin
    sett := New ValidationExecuteSettings.Create();
    res := val.Execute(sett);
    System.Diagnostics.Debug.WriteLine(======Messages=====);
    For Each s In sett.Messages Do
        System.Diagnostics.Debug.WriteLine(s);
    End For;
    System.Diagnostics.Debug.WriteLine(======Warnings=====);
    For Each s In sett.Warnings Do
        System.Diagnostics.Debug.WriteLine(s);
    End For;
    Return res;
End Function;

After executing the function returns the data of validation calculation. The messages and warnings of validation filter are displayed in the console window.

See also:

IValidationExecuteSettings