Screen.Width

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aScreen.Width

Supported for all project types and targets.

The width of the screen. Use the Screen method to call Width. For example, Screen(0).Width returns the width of the main screen.