Ostype
Ostype (Função)
Formato
ostype
ostype ( )
devolve expressão_inteira
Descrição
Devolve um número que representa o sistema operativo/ambiente para o qual este executável do BASIC256 foi compilado.
| Valores devolvidos | |
|---|---|
| Constante | Valor |
| OSTYPE_WINDOWS | 0 |
| OSTYPE_LINUX | 1 |
| OSTYPE_MACINTOSH | 2 |
| OSTYPE_ANDROID | 3 |
Exemplo
print "You are using a ";
if ostype() = 0 then
print "windows";
else
print "non-windows";
end if
print " machine."
vai mostrar algo como
You are using a non-windows machine.
Ver também
EditVisible, GraphToolBarVisible, GraphVisible, Include,MainToolbarVisible, Maximize, OutputToolBarVisible, OutputVisible, RegexMinimal, Ostype, System, Version
Histórico
| 0.9.6.58 | Novo nesta versão |
| 1.0.1.0 | Acrescentado o Android |
| 1.99.99.58 | Acrescentadas as constantes com nome |