Move(OldIndex: Integer; NewIndex: Integer);
OldIndex - previous position.
NewIndex - new position.
The Move method moves a sheet from the position with the OldIndexto index the position with the NewIndex index.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Sheets: IPrxSheets;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
Sheets := Report.Sheets;
Sheets.Move(3,0);
MObj.Save;
End Sub Main;
After executing the example the sheet is moved from the 4th position to the first position. The identifier of the regular report - Report.
See also: