DesktopPagePanel.LastAddedPanelIndex

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aDesktopPagePanel.LastAddedPanelIndex

New in 2021r3

Supported for all project types and targets.

The number of the last Panel added with the AddPanel or AddPanelAt methods. LastAddedPanelIndex is zero-based. If no panels have been added, LastAddedPanelIndex will be -1.