IAuditFilterCondition.IsAnd

Syntax

IsAnd: Boolean;

Description

The IsAnd property determines operation of union with the next condition.

Comments

If the property is set to True, union by logical "AND" is performed, otherwise - "OR".

Example

Sub UserProc;

Var

FilCon: IAuditFiltersContainer;

Objs: IAuditFilterObjects;

Obj: IAuditFilterObject;

Con: IAuditFilterCondition;

Fil: IAuditFilter;

Begin

FilCon := New AuditFiltersContainer.Create;

FilCon.Load;

Objs := FilCon.Filters;

Obj := Objs.FindById("FILTER").Edit;

Fil := Obj.Filter;

Con := Fil.Add;

Con.IsAnd := True;

Con.IncludeSucceededOperations := False;

Con.MinDate := DateTime.ComposeDay(2009, 1, 1);

Con.MaxDate := DateTime.Now;

Obj.Save;

FilCon.SaveToFile(FilCon.DefaultFileName);

End Sub UserProc;

After executing this example the second condition for which the union operation with the previous condition "Union by logical AND" is determined is added for a filter.

See also:

IAuditFilterCondition