Ostype
Ostype (Función)
Formato
ostype
ostype ( )
devuelve expresión_entera
Descripción
Devuelve un número que representa el sistema operativo o el entorno para el que se compiló este ejecutable de BASIC256.
| Valores devueltos | |
|---|---|
| Constante | Valor |
| OSTYPE_WINDOWS | 0 |
| OSTYPE_LINUX | 1 |
| OSTYPE_MACINTOSH | 2 |
| OSTYPE_ANDROID | 3 |
Ejemplo
print "You are using a ";
if ostype() = 0 then
print "windows";
else
print "non-windows";
end if
print " machine."
Mostrará algo parecido a
You are using a non-windows machine.
Véase también
EditVisible, GraphToolBarVisible, GraphVisible, Include,MainToolbarVisible, Maximize, OutputToolBarVisible, OutputVisible, RegexMinimal, Ostype, System, Version
Historial
| 0.9.6.58 | Nuevo en esta versión |
| 1.0.1.0 | Se añadió Android |
| 1.99.99.58 | Se añadieron las constantes con nombre |