StarBasic - Allgemein
Wie kann man das verwendete Betriebssystem auslesen?
Dies geht mit dem Befehl GetGUIType(). Dieser gibt drei Werte zurück:
1 = Windows
3 = MacOS
4 = Unix
Basic
Sub ShowBS
OS = GetGUIType()
if OS = 1 then Msgbox "BS ist Windows"
if OS = 3 then Msgbox "BS ist Mac"
if OS = 4 then Msgbox "BS ist Unix"
End Sub