Warnings: IStringList;
The Warnings property returns validation filter warnings.
Warnings are presented as a string array.
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.
See also: