From Xojo Documentation
The index of the last display connected to the user's computer. Display 0 is the main display. This can be useful when you need to loop through the user's displays.
This example finds the maximum screen depth of all displays connected to the user's computer: