ScreenCount Function

Used to determine the number of screens connected to the user's computer.

Syntax

result = ScreenCount




Notes

The ScreenCount function returns the number of screens (monitors) connected to the user's computer.


Example

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've only got one monitor. "
else
  MsgBox "You've got "+ Str(myscreens)+" screens!"
end if

See Also

Screen class; Screen function.