- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Description
Type: Number
Returns the index of the active page in your app's layout.
Examples
// display the current page index in the debugger
debug.log(app.pageIndex);
Remarks
Page indexes are zero-based. This means the first page will have an index value of 0 and the third page will have an index value of 2.
Zero-Based Indexing
Zero-based indexing seems strange at first, but its how programming languages (i.e. Javascript) work with collections of things.