PanelPages.Delete
Syntax:
Parameters:
<Page> (required)
Number of the page to be deleted from the collection or the page.
Description:
If the "Do not separate by pages" mode is set, all the controls are located on the same page and will be deleted only when all the pages are deleted.
Availability:
Example:
//Deleting unnecessary pages IndexOf = 0; While 1 = 1 Do If IndexOf > Controls.Panel.Pages.Count()-1 Then Break; EndIf; PanelPage = Controls.Panel.Pages[IndexOf]; If AccumulationRegistersTable.Find(PanelPage.Name,"Name") = Undefined Then Controls.Panel.Pages.Delete(IndexOf); Continue; EndIf; IndexOf = IndexOf + 1; EndDo; Controls.Panel.CurrentPage = Controls.Panel.Pages[0]; |