Move(IndexFrom: Integer; IndexTo: Integer);
IndexFrom is index of the position, in which the condition is located.
IndexTo is index of the position, into which the condition should be put.
The Move method moves the condition, that is in position with the IndexFrom index, into a position with the IndexTo index, with upward shift of other conditions.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
AL: IAuditLog;
AF: IAuditFilter;
New_Filtr: IAuditFilterCondition;
Begin
MB:=MetabaseClass.Active;
MS:=MB.Security;
Al:=MS.OpenAuditLog;
AF:=Al.Filter;
AF.Move(1,3);
End Sub Main;
After executing the example the second condition is moved to the fourth position, the first condition is left without shifting, the third and fourth conditions are shifted one position upward.
See also: