Category: System
Syntax:
sysGetMonitorString:String(monitor:Int)
String
Returns the name of the given monitor, for example "Built-in Screen" or a model name such as "Samsung Electric Company C24F390".
Takes monitor (the monitor number, zero-based).
Returns the monitor name, or an empty string if the number is out of range. Can be called BEFORE b2dGraphics - a program choosing a monitor has no window yet.
Linux edition only - this function has no Windows counterpart, so it is not in the online documentation.
Local count:Int = sysGetMonitors() For n:Int = 0 To count - 1 Print ToString(n) & ": " & sysGetMonitorString(n) & " " & _ ToString(sysGetMonitorWidth(n)) & " x " & ToString(sysGetMonitorHeight(n)) Next
BambooBasic © 2026 Michael Denathorn