Method
ScreenCount
Warning
This item was deprecated in version 2019r2. Please use DesktopDisplay.DisplayCount as a replacement.
Description
Used to determine the number of screens connected to the user's computer.
Notes
The ScreenCount function returns the number of screens (monitors) connected to the user's computer (Windows and Macintosh). On Linux, ScreenCount always returns 1.
Sample code
This example reports on the number of monitors attached to the user's computer.
Dim myScreens As Integer
myScreens = ScreenCount
If myScreens = 1 Then
MsgBox("You have only one display.")
Else
MsgBox("You have " + Str(myScreens) + " displays!"
End If
Compatibility
All project types on all supported operating systems.
See also
DesktopDisplay class; DesktopDisplay.DisplayAt function.