Remove(Index: Integer): Boolean;
Index is a condition index.
The Remove method enables deleting the filter condition, which index is passed by the Index parameter.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
AF: IAuditFilter;
s: String;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Al:=MS.OpenAuditLog;
AF:=Al.Filter;
If AF.Remove(2) Then
s:="Remove";
Else
s:="Dont_Remove";
End If;
End Sub Main;
After executing the example the "s" variable contains the Remove value, if the third condition was removed successfully.
See also: