Skip to main content

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
ConstanteValor
OSTYPE_WINDOWS0
OSTYPE_LINUX1
OSTYPE_MACINTOSH2
OSTYPE_ANDROID3

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.58Nuevo en esta versión
1.0.1.0Se añadió Android
1.99.99.58Se añadieron las constantes con nombre