PanelPages.IndexOf

Syntax:

IndexOf(<Page>)

Parameters:

<Page> (required)

Type: PanelPage.
Panel page.

Returned value:

Type: Number.
Index of the indicated page in the collection. If none is found, returns -1.

Description:

Obtains the index of page in a collection of panel pages.

Availability:

Thick client.

Example:

CurPageIndex = Panel.Pages.IndexOf(Panel.CurrentPage);

    

1C:Enterprise Developer's Community